fomantic-ui 2.9.1-beta.15 → 2.9.1-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +14 -12
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +2 -2
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +15 -12
  8. package/dist/components/api.min.js +2 -2
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +21 -21
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +2 -2
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +7 -7
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +2 -2
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +8 -8
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +2 -2
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +28 -24
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +4 -4
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +2 -2
  41. package/dist/components/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/flyout.css +1 -1
  46. package/dist/components/flyout.js +26 -24
  47. package/dist/components/flyout.min.css +1 -1
  48. package/dist/components/flyout.min.js +2 -2
  49. package/dist/components/form.css +1 -1
  50. package/dist/components/form.js +15 -15
  51. package/dist/components/form.min.css +1 -1
  52. package/dist/components/form.min.js +2 -2
  53. package/dist/components/grid.css +1 -1
  54. package/dist/components/grid.min.css +1 -1
  55. package/dist/components/header.css +1 -1
  56. package/dist/components/header.min.css +1 -1
  57. package/dist/components/icon.css +1 -1
  58. package/dist/components/icon.min.css +1 -1
  59. package/dist/components/image.css +1 -1
  60. package/dist/components/image.min.css +1 -1
  61. package/dist/components/input.css +1 -1
  62. package/dist/components/input.min.css +1 -1
  63. package/dist/components/item.css +1 -1
  64. package/dist/components/item.min.css +1 -1
  65. package/dist/components/label.css +1 -1
  66. package/dist/components/label.min.css +1 -1
  67. package/dist/components/list.css +1 -1
  68. package/dist/components/list.min.css +1 -1
  69. package/dist/components/loader.css +1 -1
  70. package/dist/components/loader.min.css +1 -1
  71. package/dist/components/message.css +1 -1
  72. package/dist/components/message.min.css +1 -1
  73. package/dist/components/modal.css +1 -1
  74. package/dist/components/modal.js +30 -28
  75. package/dist/components/modal.min.css +1 -1
  76. package/dist/components/modal.min.js +2 -2
  77. package/dist/components/nag.css +1 -1
  78. package/dist/components/nag.js +6 -6
  79. package/dist/components/nag.min.css +1 -1
  80. package/dist/components/nag.min.js +2 -2
  81. package/dist/components/placeholder.css +1 -1
  82. package/dist/components/placeholder.min.css +1 -1
  83. package/dist/components/popup.css +1 -1
  84. package/dist/components/popup.js +9 -9
  85. package/dist/components/popup.min.css +1 -1
  86. package/dist/components/popup.min.js +2 -2
  87. package/dist/components/progress.css +1 -1
  88. package/dist/components/progress.js +8 -8
  89. package/dist/components/progress.min.css +1 -1
  90. package/dist/components/progress.min.js +2 -2
  91. package/dist/components/rail.css +1 -1
  92. package/dist/components/rail.min.css +1 -1
  93. package/dist/components/rating.css +1 -1
  94. package/dist/components/rating.js +4 -4
  95. package/dist/components/rating.min.css +1 -1
  96. package/dist/components/rating.min.js +2 -2
  97. package/dist/components/reset.css +1 -1
  98. package/dist/components/reset.min.css +1 -1
  99. package/dist/components/reveal.css +1 -1
  100. package/dist/components/reveal.min.css +1 -1
  101. package/dist/components/search.css +1 -1
  102. package/dist/components/search.js +12 -12
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +2 -2
  105. package/dist/components/segment.css +1 -1
  106. package/dist/components/segment.min.css +1 -1
  107. package/dist/components/shape.css +1 -1
  108. package/dist/components/shape.js +5 -5
  109. package/dist/components/shape.min.css +1 -1
  110. package/dist/components/shape.min.js +2 -2
  111. package/dist/components/sidebar.css +1 -1
  112. package/dist/components/sidebar.js +9 -9
  113. package/dist/components/sidebar.min.css +1 -1
  114. package/dist/components/sidebar.min.js +2 -2
  115. package/dist/components/site.css +1 -1
  116. package/dist/components/site.js +10 -15
  117. package/dist/components/site.min.css +1 -1
  118. package/dist/components/site.min.js +2 -2
  119. package/dist/components/slider.js +18 -13
  120. package/dist/components/slider.min.js +2 -2
  121. package/dist/components/state.js +4 -4
  122. package/dist/components/state.min.js +2 -2
  123. package/dist/components/statistic.css +1 -1
  124. package/dist/components/statistic.min.css +1 -1
  125. package/dist/components/step.css +1 -1
  126. package/dist/components/step.min.css +1 -1
  127. package/dist/components/sticky.css +1 -1
  128. package/dist/components/sticky.js +10 -9
  129. package/dist/components/sticky.min.css +1 -1
  130. package/dist/components/sticky.min.js +2 -2
  131. package/dist/components/tab.css +1 -1
  132. package/dist/components/tab.js +11 -11
  133. package/dist/components/tab.min.css +1 -1
  134. package/dist/components/tab.min.js +2 -2
  135. package/dist/components/table.css +1 -1
  136. package/dist/components/table.min.css +1 -1
  137. package/dist/components/text.css +1 -1
  138. package/dist/components/text.min.css +1 -1
  139. package/dist/components/toast.css +1 -1
  140. package/dist/components/toast.js +28 -25
  141. package/dist/components/toast.min.css +1 -1
  142. package/dist/components/toast.min.js +2 -2
  143. package/dist/components/transition.css +1 -1
  144. package/dist/components/transition.js +4 -4
  145. package/dist/components/transition.min.css +1 -1
  146. package/dist/components/transition.min.js +2 -2
  147. package/dist/components/visibility.js +5 -5
  148. package/dist/components/visibility.min.js +2 -2
  149. package/dist/semantic.css +50 -50
  150. package/dist/semantic.js +312 -295
  151. package/dist/semantic.min.css +1 -1
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/behaviors/api.js +14 -11
  155. package/src/definitions/behaviors/form.js +14 -14
  156. package/src/definitions/behaviors/state.js +3 -3
  157. package/src/definitions/behaviors/visibility.js +4 -4
  158. package/src/definitions/globals/site.js +9 -14
  159. package/src/definitions/modules/accordion.js +13 -11
  160. package/src/definitions/modules/calendar.js +20 -20
  161. package/src/definitions/modules/checkbox.js +6 -6
  162. package/src/definitions/modules/dimmer.js +7 -7
  163. package/src/definitions/modules/dropdown.js +27 -23
  164. package/src/definitions/modules/embed.js +3 -3
  165. package/src/definitions/modules/flyout.js +25 -23
  166. package/src/definitions/modules/modal.js +29 -27
  167. package/src/definitions/modules/nag.js +5 -5
  168. package/src/definitions/modules/popup.js +8 -8
  169. package/src/definitions/modules/progress.js +7 -7
  170. package/src/definitions/modules/rating.js +3 -3
  171. package/src/definitions/modules/search.js +11 -11
  172. package/src/definitions/modules/shape.js +4 -4
  173. package/src/definitions/modules/sidebar.js +8 -8
  174. package/src/definitions/modules/slider.js +17 -12
  175. package/src/definitions/modules/sticky.js +9 -8
  176. package/src/definitions/modules/tab.js +10 -10
  177. package/src/definitions/modules/toast.js +27 -24
  178. package/src/definitions/modules/transition.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fomantic-ui",
3
- "version": "2.9.1-beta.15+02b01ff",
3
+ "version": "2.9.1-beta.17+3767ba8",
4
4
  "description": "Fomantic empowers designers and developers by creating a shared vocabulary for UI.",
5
5
  "keywords": [
6
6
  "fomantic-ui",
@@ -12,9 +12,12 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isWindow = $.isWindow || function(obj) {
16
- return obj != null && obj === obj.window;
17
- };
15
+ function isWindow(obj) {
16
+ return obj != null && obj === obj.window;
17
+ }
18
+ function isFunction(obj) {
19
+ return typeof obj === "function" && typeof obj.nodeType !== "number";
20
+ }
18
21
 
19
22
  window = (typeof window != 'undefined' && window.Math == Math)
20
23
  ? window
@@ -27,7 +30,7 @@ $.api = $.fn.api = function(parameters) {
27
30
 
28
31
  var
29
32
  // use window context if none specified
30
- $allModules = $.isFunction(this)
33
+ $allModules = isFunction(this)
31
34
  ? $(window)
32
35
  : $(this),
33
36
  moduleSelector = $allModules.selector || '',
@@ -316,7 +319,7 @@ $.api = $.fn.api = function(parameters) {
316
319
  }
317
320
  },
318
321
  validResponse: function(response) {
319
- if( (!module.is.expectingJSON()) || !$.isFunction(settings.successTest) ) {
322
+ if( (!module.is.expectingJSON()) || !isFunction(settings.successTest) ) {
320
323
  module.verbose('Response is not JSON, skipping validation', settings.successTest, response);
321
324
  return true;
322
325
  }
@@ -539,7 +542,7 @@ $.api = $.fn.api = function(parameters) {
539
542
  context = this,
540
543
  elapsedTime = (new Date().getTime() - requestStartTime),
541
544
  timeLeft = (settings.loadingDuration - elapsedTime),
542
- translatedResponse = ( $.isFunction(settings.onResponse) )
545
+ translatedResponse = ( isFunction(settings.onResponse) )
543
546
  ? module.is.expectingJSON() && !settings.rawResponse
544
547
  ? settings.onResponse.call(context, $.extend(true, {}, response))
545
548
  : settings.onResponse.call(context, response)
@@ -683,7 +686,7 @@ $.api = $.fn.api = function(parameters) {
683
686
  ;
684
687
 
685
688
  if(responder) {
686
- if( $.isFunction(responder) ) {
689
+ if( isFunction(responder) ) {
687
690
  module.debug('Using specified synchronous callback', responder);
688
691
  response = responder.call(context, requestSettings);
689
692
  }
@@ -694,7 +697,7 @@ $.api = $.fn.api = function(parameters) {
694
697
  // simulating response
695
698
  mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]);
696
699
  }
697
- else if( $.isFunction(asyncResponder) ) {
700
+ else if( isFunction(asyncResponder) ) {
698
701
  asyncCallback = function(response) {
699
702
  module.debug('Async callback returned response', response);
700
703
 
@@ -825,7 +828,7 @@ $.api = $.fn.api = function(parameters) {
825
828
  var
826
829
  data = {}
827
830
  ;
828
- if( !$.isWindow(element) ) {
831
+ if( !isWindow(element) ) {
829
832
  if( module.is.input() ) {
830
833
  data.value = $module.val();
831
834
  }
@@ -839,7 +842,7 @@ $.api = $.fn.api = function(parameters) {
839
842
  return data;
840
843
  },
841
844
  event: function() {
842
- if( $.isWindow(element) || settings.on == 'now' ) {
845
+ if( isWindow(element) || settings.on == 'now' ) {
843
846
  module.debug('API called without element, no events attached');
844
847
  return false;
845
848
  }
@@ -1046,7 +1049,7 @@ $.api = $.fn.api = function(parameters) {
1046
1049
  }
1047
1050
  });
1048
1051
  }
1049
- if ( $.isFunction( found ) ) {
1052
+ if ( isFunction( found ) ) {
1050
1053
  response = found.apply(context, passedArguments);
1051
1054
  }
1052
1055
  else if(found !== undefined) {
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -139,7 +139,7 @@ $.fn.form = function(parameters) {
139
139
  submit: function() {
140
140
  module.verbose('Submitting form', $module);
141
141
  submitting = true;
142
- $module.submit();
142
+ $module.trigger('submit');
143
143
  },
144
144
 
145
145
  attachEvents: function(selector, action) {
@@ -538,7 +538,7 @@ $.fn.form = function(parameters) {
538
538
  ancillary = module.get.ancillaryValue(rule),
539
539
  $field = module.get.field(field.identifier),
540
540
  value = $field.val(),
541
- prompt = $.isFunction(rule.prompt)
541
+ prompt = isFunction(rule.prompt)
542
542
  ? rule.prompt(value)
543
543
  : rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
544
544
  requiresValue = (prompt.search('{value}') !== -1),
@@ -1146,7 +1146,7 @@ $.fn.form = function(parameters) {
1146
1146
  $field.each(function (_index, el) {
1147
1147
  var
1148
1148
  $el = $(el),
1149
- $elGroup = $(el).closest($group),
1149
+ $elGroup = $el.closest($group),
1150
1150
  isCheckbox = ($el.filter(selector.checkbox).length > 0),
1151
1151
  isRequired = $el.prop('required') || $elGroup.hasClass(className.required) || $elGroup.parent().hasClass(className.required),
1152
1152
  isDisabled = $el.is(':disabled') || $elGroup.hasClass(className.disabled) || $elGroup.parent().hasClass(className.disabled),
@@ -1211,21 +1211,21 @@ $.fn.form = function(parameters) {
1211
1211
  event.stopImmediatePropagation();
1212
1212
  }
1213
1213
  if(settings.errorFocus && ignoreCallbacks !== true) {
1214
- var focusElement, hasTabIndex = true;
1214
+ var $focusElement, hasTabIndex = true;
1215
1215
  if (typeof settings.errorFocus === 'string') {
1216
- focusElement = $(document).find(settings.errorFocus);
1217
- hasTabIndex = focusElement.is('[tabindex]');
1216
+ $focusElement = $(document).find(settings.errorFocus);
1217
+ hasTabIndex = $focusElement.is('[tabindex]');
1218
1218
  // to be able to focus/scroll into non input elements we need a tabindex
1219
1219
  if (!hasTabIndex) {
1220
- focusElement.attr('tabindex',-1);
1220
+ $focusElement.attr('tabindex',-1);
1221
1221
  }
1222
1222
  } else {
1223
- focusElement = $group.filter('.' + className.error).first().find(selector.field);
1223
+ $focusElement = $group.filter('.' + className.error).first().find(selector.field);
1224
1224
  }
1225
- focusElement.focus();
1225
+ $focusElement.trigger('focus');
1226
1226
  // only remove tabindex if it was dynamically created above
1227
1227
  if (!hasTabIndex){
1228
- focusElement.removeAttr('tabindex');
1228
+ $focusElement.removeAttr('tabindex');
1229
1229
  }
1230
1230
  }
1231
1231
  if(ignoreCallbacks !== true) {
@@ -1322,7 +1322,7 @@ $.fn.form = function(parameters) {
1322
1322
  return ruleFunction.call(field, value, ancillary, $module);
1323
1323
  }
1324
1324
  ;
1325
- if( !$.isFunction(ruleFunction) ) {
1325
+ if( !isFunction(ruleFunction) ) {
1326
1326
  module.error(error.noRule, ruleName);
1327
1327
  return;
1328
1328
  }
@@ -1481,7 +1481,7 @@ $.fn.form = function(parameters) {
1481
1481
  }
1482
1482
  });
1483
1483
  }
1484
- if( $.isFunction( found ) ) {
1484
+ if( isFunction( found ) ) {
1485
1485
  response = found.apply(context, passedArguments);
1486
1486
  }
1487
1487
  else if(found !== undefined) {
@@ -12,9 +12,9 @@
12
12
 
13
13
  "use strict";
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -556,7 +556,7 @@ $.fn.state = function(parameters) {
556
556
  }
557
557
  });
558
558
  }
559
- if ( $.isFunction( found ) ) {
559
+ if ( isFunction( found ) ) {
560
560
  response = found.apply(context, passedArguments);
561
561
  }
562
562
  else if(found !== undefined) {
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -243,7 +243,7 @@ $.fn.visibility = function(parameters) {
243
243
  handleLoad = function() {
244
244
  loadedCounter++;
245
245
  if (loadedCounter >= images.length) {
246
- if ($.isFunction(callback)) {
246
+ if (isFunction(callback)) {
247
247
  callback();
248
248
  }
249
249
  }
@@ -1168,7 +1168,7 @@ $.fn.visibility = function(parameters) {
1168
1168
  }
1169
1169
  });
1170
1170
  }
1171
- if ( $.isFunction( found ) ) {
1171
+ if ( isFunction( found ) ) {
1172
1172
  response = found.apply(context, passedArguments);
1173
1173
  }
1174
1174
  else if(found !== undefined) {
@@ -10,9 +10,9 @@
10
10
 
11
11
  ;(function ($, window, document, undefined) {
12
12
 
13
- $.isFunction = $.isFunction || function(obj) {
13
+ function isFunction(obj) {
14
14
  return typeof obj === "function" && typeof obj.nodeType !== "number";
15
- };
15
+ }
16
16
 
17
17
  $.site = $.fn.site = function(parameters) {
18
18
  var
@@ -388,7 +388,7 @@ $.site = $.fn.site = function(parameters) {
388
388
  }
389
389
  });
390
390
  }
391
- if ( $.isFunction( found ) ) {
391
+ if ( isFunction( found ) ) {
392
392
  response = found.apply(context, passedArguments);
393
393
  }
394
394
  else if(found !== undefined) {
@@ -476,17 +476,12 @@ $.site.settings = {
476
476
  };
477
477
 
478
478
  // allows for selection of elements with data attributes
479
- $.extend($.expr[ ":" ], {
480
- data: ($.expr.createPseudo)
481
- ? $.expr.createPseudo(function(dataName) {
482
- return function(elem) {
483
- return !!$.data(elem, dataName);
484
- };
485
- })
486
- : function(elem, i, match) {
487
- // support: jQuery < 1.8
488
- return !!$.data(elem, match[ 3 ]);
489
- }
479
+ $.extend($.expr.pseudos, {
480
+ data: $.expr.createPseudo(function(dataName) {
481
+ return function(elem) {
482
+ return !!$.data(elem, dataName);
483
+ };
484
+ })
490
485
  });
491
486
 
492
487
 
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -356,9 +356,10 @@ $.fn.accordion = function(parameters) {
356
356
 
357
357
  display: function() {
358
358
  module.verbose('Removing inline display from element', this);
359
- $(this).css('display', '');
360
- if( $(this).attr('style') === '') {
361
- $(this)
359
+ var $element = $(this);
360
+ $element.css('display', '');
361
+ if($element.attr('style') === '') {
362
+ $element
362
363
  .attr('style', '')
363
364
  .removeAttr('style')
364
365
  ;
@@ -367,9 +368,10 @@ $.fn.accordion = function(parameters) {
367
368
 
368
369
  opacity: function() {
369
370
  module.verbose('Removing inline opacity from element', this);
370
- $(this).css('opacity', '');
371
- if( $(this).attr('style') === '') {
372
- $(this)
371
+ var $element = $(this);
372
+ $element.css('opacity', '');
373
+ if($element.attr('style') === '') {
374
+ $element
373
375
  .attr('style', '')
374
376
  .removeAttr('style')
375
377
  ;
@@ -525,7 +527,7 @@ $.fn.accordion = function(parameters) {
525
527
  }
526
528
  });
527
529
  }
528
- if ( $.isFunction( found ) ) {
530
+ if ( isFunction( found ) ) {
529
531
  response = found.apply(context, passedArguments);
530
532
  }
531
533
  else if(found !== undefined) {
@@ -615,8 +617,8 @@ $.fn.accordion.settings = {
615
617
 
616
618
  // Adds easing
617
619
  $.extend( $.easing, {
618
- easeOutQuad: function (x, t, b, c, d) {
619
- return -c *(t/=d)*(t-2) + b;
620
+ easeOutQuad: function (x) {
621
+ return 1 - (1 - x) * (1 - x);;
620
622
  }
621
623
  });
622
624
 
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -479,24 +479,24 @@ $.fn.calendar = function(parameters) {
479
479
  var rangeDate = (updateRange ? focusDate : null) || date || (!isTouch ? focusDate : null);
480
480
 
481
481
  container.find('td').each(function () {
482
- var cell = $(this);
483
- var cellDate = cell.data(metadata.date);
482
+ var $cell = $(this);
483
+ var cellDate = $cell.data(metadata.date);
484
484
  if (!cellDate) {
485
485
  return;
486
486
  }
487
- var disabled = cell.hasClass(className.disabledCell);
488
- var active = cell.hasClass(className.activeCell);
489
- var adjacent = cell.hasClass(className.adjacentCell);
487
+ var disabled = $cell.hasClass(className.disabledCell);
488
+ var active = $cell.hasClass(className.activeCell);
489
+ var adjacent = $cell.hasClass(className.adjacentCell);
490
490
  var focused = module.helper.dateEqual(cellDate, focusDate, mode);
491
491
  var inRange = !rangeDate ? false :
492
492
  ((!!startDate && module.helper.isDateInRange(cellDate, mode, startDate, rangeDate)) ||
493
493
  (!!endDate && module.helper.isDateInRange(cellDate, mode, rangeDate, endDate)));
494
- cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
494
+ $cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
495
495
 
496
- if (module.helper.isTodayButton(cell)) {
496
+ if (module.helper.isTodayButton($cell)) {
497
497
  return;
498
498
  }
499
- cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
499
+ $cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
500
500
  });
501
501
  }
502
502
  },
@@ -508,13 +508,13 @@ $.fn.calendar = function(parameters) {
508
508
  refreshTooltips: function() {
509
509
  var winWidth = $(window).width();
510
510
  $container.find('td[data-position]').each(function () {
511
- var cell = $(this);
512
- var tooltipWidth = window.getComputedStyle(cell[0], '::after').width.replace(/[^0-9\.]/g,'');
513
- var tooltipPosition = cell.attr('data-position');
511
+ var $cell = $(this);
512
+ var tooltipWidth = window.getComputedStyle($cell[0], '::after').width.replace(/[^0-9\.]/g,'');
513
+ var tooltipPosition = $cell.attr('data-position');
514
514
  // use a fallback width of 250 (calendar width) for IE/Edge (which return "auto")
515
- var calcPosition = (winWidth - cell.width() - (parseInt(tooltipWidth,10) || 250)) > cell.offset().left ? 'right' : 'left';
515
+ var calcPosition = (winWidth - $cell.width() - (parseInt(tooltipWidth,10) || 250)) > $cell.offset().left ? 'right' : 'left';
516
516
  if(tooltipPosition.indexOf(calcPosition) === -1) {
517
- cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
517
+ $cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
518
518
  }
519
519
  });
520
520
  },
@@ -984,16 +984,16 @@ $.fn.calendar = function(parameters) {
984
984
 
985
985
  focus: function () {
986
986
  if ($input.length) {
987
- $input.focus();
987
+ $input.trigger('focus');
988
988
  } else {
989
- $container.focus();
989
+ $container.trigger('focus');
990
990
  }
991
991
  },
992
992
  blur: function () {
993
993
  if ($input.length) {
994
- $input.blur();
994
+ $input.trigger('blur');
995
995
  } else {
996
- $container.blur();
996
+ $container.trigger('blur');
997
997
  }
998
998
  },
999
999
 
@@ -1448,7 +1448,7 @@ $.fn.calendar = function(parameters) {
1448
1448
  }
1449
1449
  });
1450
1450
  }
1451
- if ($.isFunction(found)) {
1451
+ if (isFunction(found)) {
1452
1452
  response = found.apply(context, passedArguments);
1453
1453
  }
1454
1454
  else if (found !== undefined) {
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -159,7 +159,7 @@ $.fn.checkbox = function(parameters) {
159
159
  var
160
160
  $element = $(selector)
161
161
  ;
162
- event = $.isFunction(module[event])
162
+ event = isFunction(module[event])
163
163
  ? module[event]
164
164
  : module.toggle
165
165
  ;
@@ -200,7 +200,7 @@ $.fn.checkbox = function(parameters) {
200
200
  return;
201
201
  }
202
202
  module.toggle();
203
- $input.focus();
203
+ $input.trigger('focus');
204
204
  event.preventDefault();
205
205
  },
206
206
  keydown: function(event) {
@@ -242,7 +242,7 @@ $.fn.checkbox = function(parameters) {
242
242
  shortcutPressed = false;
243
243
  if(key == keyCode.escape) {
244
244
  module.verbose('Escape key pressed blurring field');
245
- $input.blur();
245
+ $input.trigger('blur');
246
246
  shortcutPressed = true;
247
247
  event.stopPropagation();
248
248
  }
@@ -783,7 +783,7 @@ $.fn.checkbox = function(parameters) {
783
783
  }
784
784
  });
785
785
  }
786
- if ( $.isFunction( found ) ) {
786
+ if ( isFunction( found ) ) {
787
787
  response = found.apply(context, passedArguments);
788
788
  }
789
789
  else if(found !== undefined) {
@@ -12,9 +12,9 @@
12
12
 
13
13
  'use strict';
14
14
 
15
- $.isFunction = $.isFunction || function(obj) {
15
+ function isFunction(obj) {
16
16
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
17
+ }
18
18
 
19
19
  window = (typeof window != 'undefined' && window.Math == Math)
20
20
  ? window
@@ -188,7 +188,7 @@ $.fn.dimmer = function(parameters) {
188
188
  },
189
189
 
190
190
  show: function(callback) {
191
- callback = $.isFunction(callback)
191
+ callback = isFunction(callback)
192
192
  ? callback
193
193
  : function(){}
194
194
  ;
@@ -208,7 +208,7 @@ $.fn.dimmer = function(parameters) {
208
208
  },
209
209
 
210
210
  hide: function(callback) {
211
- callback = $.isFunction(callback)
211
+ callback = isFunction(callback)
212
212
  ? callback
213
213
  : function(){}
214
214
  ;
@@ -240,7 +240,7 @@ $.fn.dimmer = function(parameters) {
240
240
 
241
241
  animate: {
242
242
  show: function(callback) {
243
- callback = $.isFunction(callback)
243
+ callback = isFunction(callback)
244
244
  ? callback
245
245
  : function(){}
246
246
  ;
@@ -302,7 +302,7 @@ $.fn.dimmer = function(parameters) {
302
302
  }
303
303
  },
304
304
  hide: function(callback) {
305
- callback = $.isFunction(callback)
305
+ callback = isFunction(callback)
306
306
  ? callback
307
307
  : function(){}
308
308
  ;
@@ -628,7 +628,7 @@ $.fn.dimmer = function(parameters) {
628
628
  }
629
629
  });
630
630
  }
631
- if ( $.isFunction( found ) ) {
631
+ if ( isFunction( found ) ) {
632
632
  response = found.apply(context, passedArguments);
633
633
  }
634
634
  else if(found !== undefined) {