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/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.15+02b01ff
2
+ * # Fomantic UI - 2.9.1-beta.17+3767ba8
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Site
12
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -20,9 +20,9 @@
20
20
 
21
21
  ;(function ($, window, document, undefined) {
22
22
 
23
- $.isFunction = $.isFunction || function(obj) {
23
+ function isFunction(obj) {
24
24
  return typeof obj === "function" && typeof obj.nodeType !== "number";
25
- };
25
+ }
26
26
 
27
27
  $.site = $.fn.site = function(parameters) {
28
28
  var
@@ -398,7 +398,7 @@ $.site = $.fn.site = function(parameters) {
398
398
  }
399
399
  });
400
400
  }
401
- if ( $.isFunction( found ) ) {
401
+ if ( isFunction( found ) ) {
402
402
  response = found.apply(context, passedArguments);
403
403
  }
404
404
  else if(found !== undefined) {
@@ -486,24 +486,19 @@ $.site.settings = {
486
486
  };
487
487
 
488
488
  // allows for selection of elements with data attributes
489
- $.extend($.expr[ ":" ], {
490
- data: ($.expr.createPseudo)
491
- ? $.expr.createPseudo(function(dataName) {
492
- return function(elem) {
493
- return !!$.data(elem, dataName);
494
- };
495
- })
496
- : function(elem, i, match) {
497
- // support: jQuery < 1.8
498
- return !!$.data(elem, match[ 3 ]);
499
- }
489
+ $.extend($.expr.pseudos, {
490
+ data: $.expr.createPseudo(function(dataName) {
491
+ return function(elem) {
492
+ return !!$.data(elem, dataName);
493
+ };
494
+ })
500
495
  });
501
496
 
502
497
 
503
498
  })( jQuery, window, document );
504
499
 
505
500
  /*!
506
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Form Validation
501
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Form Validation
507
502
  * https://github.com/fomantic/Fomantic-UI/
508
503
  *
509
504
  *
@@ -516,9 +511,9 @@ $.extend($.expr[ ":" ], {
516
511
 
517
512
  'use strict';
518
513
 
519
- $.isFunction = $.isFunction || function(obj) {
514
+ function isFunction(obj) {
520
515
  return typeof obj === "function" && typeof obj.nodeType !== "number";
521
- };
516
+ }
522
517
 
523
518
  window = (typeof window != 'undefined' && window.Math == Math)
524
519
  ? window
@@ -643,7 +638,7 @@ $.fn.form = function(parameters) {
643
638
  submit: function() {
644
639
  module.verbose('Submitting form', $module);
645
640
  submitting = true;
646
- $module.submit();
641
+ $module.trigger('submit');
647
642
  },
648
643
 
649
644
  attachEvents: function(selector, action) {
@@ -1042,7 +1037,7 @@ $.fn.form = function(parameters) {
1042
1037
  ancillary = module.get.ancillaryValue(rule),
1043
1038
  $field = module.get.field(field.identifier),
1044
1039
  value = $field.val(),
1045
- prompt = $.isFunction(rule.prompt)
1040
+ prompt = isFunction(rule.prompt)
1046
1041
  ? rule.prompt(value)
1047
1042
  : rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
1048
1043
  requiresValue = (prompt.search('{value}') !== -1),
@@ -1650,7 +1645,7 @@ $.fn.form = function(parameters) {
1650
1645
  $field.each(function (_index, el) {
1651
1646
  var
1652
1647
  $el = $(el),
1653
- $elGroup = $(el).closest($group),
1648
+ $elGroup = $el.closest($group),
1654
1649
  isCheckbox = ($el.filter(selector.checkbox).length > 0),
1655
1650
  isRequired = $el.prop('required') || $elGroup.hasClass(className.required) || $elGroup.parent().hasClass(className.required),
1656
1651
  isDisabled = $el.is(':disabled') || $elGroup.hasClass(className.disabled) || $elGroup.parent().hasClass(className.disabled),
@@ -1715,21 +1710,21 @@ $.fn.form = function(parameters) {
1715
1710
  event.stopImmediatePropagation();
1716
1711
  }
1717
1712
  if(settings.errorFocus && ignoreCallbacks !== true) {
1718
- var focusElement, hasTabIndex = true;
1713
+ var $focusElement, hasTabIndex = true;
1719
1714
  if (typeof settings.errorFocus === 'string') {
1720
- focusElement = $(document).find(settings.errorFocus);
1721
- hasTabIndex = focusElement.is('[tabindex]');
1715
+ $focusElement = $(document).find(settings.errorFocus);
1716
+ hasTabIndex = $focusElement.is('[tabindex]');
1722
1717
  // to be able to focus/scroll into non input elements we need a tabindex
1723
1718
  if (!hasTabIndex) {
1724
- focusElement.attr('tabindex',-1);
1719
+ $focusElement.attr('tabindex',-1);
1725
1720
  }
1726
1721
  } else {
1727
- focusElement = $group.filter('.' + className.error).first().find(selector.field);
1722
+ $focusElement = $group.filter('.' + className.error).first().find(selector.field);
1728
1723
  }
1729
- focusElement.focus();
1724
+ $focusElement.trigger('focus');
1730
1725
  // only remove tabindex if it was dynamically created above
1731
1726
  if (!hasTabIndex){
1732
- focusElement.removeAttr('tabindex');
1727
+ $focusElement.removeAttr('tabindex');
1733
1728
  }
1734
1729
  }
1735
1730
  if(ignoreCallbacks !== true) {
@@ -1826,7 +1821,7 @@ $.fn.form = function(parameters) {
1826
1821
  return ruleFunction.call(field, value, ancillary, $module);
1827
1822
  }
1828
1823
  ;
1829
- if( !$.isFunction(ruleFunction) ) {
1824
+ if( !isFunction(ruleFunction) ) {
1830
1825
  module.error(error.noRule, ruleName);
1831
1826
  return;
1832
1827
  }
@@ -1985,7 +1980,7 @@ $.fn.form = function(parameters) {
1985
1980
  }
1986
1981
  });
1987
1982
  }
1988
- if( $.isFunction( found ) ) {
1983
+ if( isFunction( found ) ) {
1989
1984
  response = found.apply(context, passedArguments);
1990
1985
  }
1991
1986
  else if(found !== undefined) {
@@ -2581,7 +2576,7 @@ $.fn.form.settings = {
2581
2576
  })( jQuery, window, document );
2582
2577
 
2583
2578
  /*!
2584
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Accordion
2579
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Accordion
2585
2580
  * https://github.com/fomantic/Fomantic-UI/
2586
2581
  *
2587
2582
  *
@@ -2594,9 +2589,9 @@ $.fn.form.settings = {
2594
2589
 
2595
2590
  'use strict';
2596
2591
 
2597
- $.isFunction = $.isFunction || function(obj) {
2592
+ function isFunction(obj) {
2598
2593
  return typeof obj === "function" && typeof obj.nodeType !== "number";
2599
- };
2594
+ }
2600
2595
 
2601
2596
  window = (typeof window != 'undefined' && window.Math == Math)
2602
2597
  ? window
@@ -2938,9 +2933,10 @@ $.fn.accordion = function(parameters) {
2938
2933
 
2939
2934
  display: function() {
2940
2935
  module.verbose('Removing inline display from element', this);
2941
- $(this).css('display', '');
2942
- if( $(this).attr('style') === '') {
2943
- $(this)
2936
+ var $element = $(this);
2937
+ $element.css('display', '');
2938
+ if($element.attr('style') === '') {
2939
+ $element
2944
2940
  .attr('style', '')
2945
2941
  .removeAttr('style')
2946
2942
  ;
@@ -2949,9 +2945,10 @@ $.fn.accordion = function(parameters) {
2949
2945
 
2950
2946
  opacity: function() {
2951
2947
  module.verbose('Removing inline opacity from element', this);
2952
- $(this).css('opacity', '');
2953
- if( $(this).attr('style') === '') {
2954
- $(this)
2948
+ var $element = $(this);
2949
+ $element.css('opacity', '');
2950
+ if($element.attr('style') === '') {
2951
+ $element
2955
2952
  .attr('style', '')
2956
2953
  .removeAttr('style')
2957
2954
  ;
@@ -3107,7 +3104,7 @@ $.fn.accordion = function(parameters) {
3107
3104
  }
3108
3105
  });
3109
3106
  }
3110
- if ( $.isFunction( found ) ) {
3107
+ if ( isFunction( found ) ) {
3111
3108
  response = found.apply(context, passedArguments);
3112
3109
  }
3113
3110
  else if(found !== undefined) {
@@ -3197,8 +3194,8 @@ $.fn.accordion.settings = {
3197
3194
 
3198
3195
  // Adds easing
3199
3196
  $.extend( $.easing, {
3200
- easeOutQuad: function (x, t, b, c, d) {
3201
- return -c *(t/=d)*(t-2) + b;
3197
+ easeOutQuad: function (x) {
3198
+ return 1 - (1 - x) * (1 - x);;
3202
3199
  }
3203
3200
  });
3204
3201
 
@@ -3206,7 +3203,7 @@ $.extend( $.easing, {
3206
3203
 
3207
3204
 
3208
3205
  /*!
3209
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Calendar
3206
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Calendar
3210
3207
  * https://github.com/fomantic/Fomantic-UI/
3211
3208
  *
3212
3209
  *
@@ -3219,9 +3216,9 @@ $.extend( $.easing, {
3219
3216
 
3220
3217
  'use strict';
3221
3218
 
3222
- $.isFunction = $.isFunction || function(obj) {
3219
+ function isFunction(obj) {
3223
3220
  return typeof obj === "function" && typeof obj.nodeType !== "number";
3224
- };
3221
+ }
3225
3222
 
3226
3223
  window = (typeof window != 'undefined' && window.Math == Math)
3227
3224
  ? window
@@ -3686,24 +3683,24 @@ $.fn.calendar = function(parameters) {
3686
3683
  var rangeDate = (updateRange ? focusDate : null) || date || (!isTouch ? focusDate : null);
3687
3684
 
3688
3685
  container.find('td').each(function () {
3689
- var cell = $(this);
3690
- var cellDate = cell.data(metadata.date);
3686
+ var $cell = $(this);
3687
+ var cellDate = $cell.data(metadata.date);
3691
3688
  if (!cellDate) {
3692
3689
  return;
3693
3690
  }
3694
- var disabled = cell.hasClass(className.disabledCell);
3695
- var active = cell.hasClass(className.activeCell);
3696
- var adjacent = cell.hasClass(className.adjacentCell);
3691
+ var disabled = $cell.hasClass(className.disabledCell);
3692
+ var active = $cell.hasClass(className.activeCell);
3693
+ var adjacent = $cell.hasClass(className.adjacentCell);
3697
3694
  var focused = module.helper.dateEqual(cellDate, focusDate, mode);
3698
3695
  var inRange = !rangeDate ? false :
3699
3696
  ((!!startDate && module.helper.isDateInRange(cellDate, mode, startDate, rangeDate)) ||
3700
3697
  (!!endDate && module.helper.isDateInRange(cellDate, mode, rangeDate, endDate)));
3701
- cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
3698
+ $cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
3702
3699
 
3703
- if (module.helper.isTodayButton(cell)) {
3700
+ if (module.helper.isTodayButton($cell)) {
3704
3701
  return;
3705
3702
  }
3706
- cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
3703
+ $cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
3707
3704
  });
3708
3705
  }
3709
3706
  },
@@ -3715,13 +3712,13 @@ $.fn.calendar = function(parameters) {
3715
3712
  refreshTooltips: function() {
3716
3713
  var winWidth = $(window).width();
3717
3714
  $container.find('td[data-position]').each(function () {
3718
- var cell = $(this);
3719
- var tooltipWidth = window.getComputedStyle(cell[0], '::after').width.replace(/[^0-9\.]/g,'');
3720
- var tooltipPosition = cell.attr('data-position');
3715
+ var $cell = $(this);
3716
+ var tooltipWidth = window.getComputedStyle($cell[0], '::after').width.replace(/[^0-9\.]/g,'');
3717
+ var tooltipPosition = $cell.attr('data-position');
3721
3718
  // use a fallback width of 250 (calendar width) for IE/Edge (which return "auto")
3722
- var calcPosition = (winWidth - cell.width() - (parseInt(tooltipWidth,10) || 250)) > cell.offset().left ? 'right' : 'left';
3719
+ var calcPosition = (winWidth - $cell.width() - (parseInt(tooltipWidth,10) || 250)) > $cell.offset().left ? 'right' : 'left';
3723
3720
  if(tooltipPosition.indexOf(calcPosition) === -1) {
3724
- cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
3721
+ $cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
3725
3722
  }
3726
3723
  });
3727
3724
  },
@@ -4191,16 +4188,16 @@ $.fn.calendar = function(parameters) {
4191
4188
 
4192
4189
  focus: function () {
4193
4190
  if ($input.length) {
4194
- $input.focus();
4191
+ $input.trigger('focus');
4195
4192
  } else {
4196
- $container.focus();
4193
+ $container.trigger('focus');
4197
4194
  }
4198
4195
  },
4199
4196
  blur: function () {
4200
4197
  if ($input.length) {
4201
- $input.blur();
4198
+ $input.trigger('blur');
4202
4199
  } else {
4203
- $container.blur();
4200
+ $container.trigger('blur');
4204
4201
  }
4205
4202
  },
4206
4203
 
@@ -4655,7 +4652,7 @@ $.fn.calendar = function(parameters) {
4655
4652
  }
4656
4653
  });
4657
4654
  }
4658
- if ($.isFunction(found)) {
4655
+ if (isFunction(found)) {
4659
4656
  response = found.apply(context, passedArguments);
4660
4657
  }
4661
4658
  else if (found !== undefined) {
@@ -5106,7 +5103,7 @@ $.fn.calendar.settings = {
5106
5103
  })(jQuery, window, document);
5107
5104
 
5108
5105
  /*!
5109
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Checkbox
5106
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Checkbox
5110
5107
  * https://github.com/fomantic/Fomantic-UI/
5111
5108
  *
5112
5109
  *
@@ -5119,9 +5116,9 @@ $.fn.calendar.settings = {
5119
5116
 
5120
5117
  'use strict';
5121
5118
 
5122
- $.isFunction = $.isFunction || function(obj) {
5119
+ function isFunction(obj) {
5123
5120
  return typeof obj === "function" && typeof obj.nodeType !== "number";
5124
- };
5121
+ }
5125
5122
 
5126
5123
  window = (typeof window != 'undefined' && window.Math == Math)
5127
5124
  ? window
@@ -5266,7 +5263,7 @@ $.fn.checkbox = function(parameters) {
5266
5263
  var
5267
5264
  $element = $(selector)
5268
5265
  ;
5269
- event = $.isFunction(module[event])
5266
+ event = isFunction(module[event])
5270
5267
  ? module[event]
5271
5268
  : module.toggle
5272
5269
  ;
@@ -5307,7 +5304,7 @@ $.fn.checkbox = function(parameters) {
5307
5304
  return;
5308
5305
  }
5309
5306
  module.toggle();
5310
- $input.focus();
5307
+ $input.trigger('focus');
5311
5308
  event.preventDefault();
5312
5309
  },
5313
5310
  keydown: function(event) {
@@ -5349,7 +5346,7 @@ $.fn.checkbox = function(parameters) {
5349
5346
  shortcutPressed = false;
5350
5347
  if(key == keyCode.escape) {
5351
5348
  module.verbose('Escape key pressed blurring field');
5352
- $input.blur();
5349
+ $input.trigger('blur');
5353
5350
  shortcutPressed = true;
5354
5351
  event.stopPropagation();
5355
5352
  }
@@ -5890,7 +5887,7 @@ $.fn.checkbox = function(parameters) {
5890
5887
  }
5891
5888
  });
5892
5889
  }
5893
- if ( $.isFunction( found ) ) {
5890
+ if ( isFunction( found ) ) {
5894
5891
  response = found.apply(context, passedArguments);
5895
5892
  }
5896
5893
  else if(found !== undefined) {
@@ -5990,7 +5987,7 @@ $.fn.checkbox.settings = {
5990
5987
  })( jQuery, window, document );
5991
5988
 
5992
5989
  /*!
5993
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Dimmer
5990
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Dimmer
5994
5991
  * https://github.com/fomantic/Fomantic-UI/
5995
5992
  *
5996
5993
  *
@@ -6003,9 +6000,9 @@ $.fn.checkbox.settings = {
6003
6000
 
6004
6001
  'use strict';
6005
6002
 
6006
- $.isFunction = $.isFunction || function(obj) {
6003
+ function isFunction(obj) {
6007
6004
  return typeof obj === "function" && typeof obj.nodeType !== "number";
6008
- };
6005
+ }
6009
6006
 
6010
6007
  window = (typeof window != 'undefined' && window.Math == Math)
6011
6008
  ? window
@@ -6179,7 +6176,7 @@ $.fn.dimmer = function(parameters) {
6179
6176
  },
6180
6177
 
6181
6178
  show: function(callback) {
6182
- callback = $.isFunction(callback)
6179
+ callback = isFunction(callback)
6183
6180
  ? callback
6184
6181
  : function(){}
6185
6182
  ;
@@ -6199,7 +6196,7 @@ $.fn.dimmer = function(parameters) {
6199
6196
  },
6200
6197
 
6201
6198
  hide: function(callback) {
6202
- callback = $.isFunction(callback)
6199
+ callback = isFunction(callback)
6203
6200
  ? callback
6204
6201
  : function(){}
6205
6202
  ;
@@ -6231,7 +6228,7 @@ $.fn.dimmer = function(parameters) {
6231
6228
 
6232
6229
  animate: {
6233
6230
  show: function(callback) {
6234
- callback = $.isFunction(callback)
6231
+ callback = isFunction(callback)
6235
6232
  ? callback
6236
6233
  : function(){}
6237
6234
  ;
@@ -6293,7 +6290,7 @@ $.fn.dimmer = function(parameters) {
6293
6290
  }
6294
6291
  },
6295
6292
  hide: function(callback) {
6296
- callback = $.isFunction(callback)
6293
+ callback = isFunction(callback)
6297
6294
  ? callback
6298
6295
  : function(){}
6299
6296
  ;
@@ -6619,7 +6616,7 @@ $.fn.dimmer = function(parameters) {
6619
6616
  }
6620
6617
  });
6621
6618
  }
6622
- if ( $.isFunction( found ) ) {
6619
+ if ( isFunction( found ) ) {
6623
6620
  response = found.apply(context, passedArguments);
6624
6621
  }
6625
6622
  else if(found !== undefined) {
@@ -6756,7 +6753,7 @@ $.fn.dimmer.settings = {
6756
6753
  })( jQuery, window, document );
6757
6754
 
6758
6755
  /*!
6759
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Dropdown
6756
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Dropdown
6760
6757
  * https://github.com/fomantic/Fomantic-UI/
6761
6758
  *
6762
6759
  *
@@ -6769,9 +6766,9 @@ $.fn.dimmer.settings = {
6769
6766
 
6770
6767
  'use strict';
6771
6768
 
6772
- $.isFunction = $.isFunction || function(obj) {
6769
+ function isFunction(obj) {
6773
6770
  return typeof obj === "function" && typeof obj.nodeType !== "number";
6774
- };
6771
+ }
6775
6772
 
6776
6773
  window = (typeof window != 'undefined' && window.Math == Math)
6777
6774
  ? window
@@ -7185,8 +7182,11 @@ $.fn.dropdown = function(parameters) {
7185
7182
  if($input.is('[required]')) {
7186
7183
  settings.forceSelection = true;
7187
7184
  }
7185
+ if(!settings.allowTab) {
7186
+ $input.removeAttr('tabindex');
7187
+ }
7188
7188
  $input
7189
- .removeAttr('required')
7189
+ .prop('required',false)
7190
7190
  .removeAttr('class')
7191
7191
  .detach()
7192
7192
  .prependTo($module)
@@ -7280,7 +7280,7 @@ $.fn.dropdown = function(parameters) {
7280
7280
  },
7281
7281
 
7282
7282
  show: function(callback, preventFocus) {
7283
- callback = $.isFunction(callback)
7283
+ callback = isFunction(callback)
7284
7284
  ? callback
7285
7285
  : function(){}
7286
7286
  ;
@@ -7314,7 +7314,7 @@ $.fn.dropdown = function(parameters) {
7314
7314
  },
7315
7315
 
7316
7316
  hide: function(callback, preventBlur) {
7317
- callback = $.isFunction(callback)
7317
+ callback = isFunction(callback)
7318
7318
  ? callback
7319
7319
  : function(){}
7320
7320
  ;
@@ -7325,7 +7325,7 @@ $.fn.dropdown = function(parameters) {
7325
7325
  module.remove.visible();
7326
7326
  // hiding search focus
7327
7327
  if ( module.is.focusedOnSearch() && preventBlur !== true ) {
7328
- $search.blur();
7328
+ $search.trigger('blur');
7329
7329
  }
7330
7330
  callback.call(element);
7331
7331
  });
@@ -7712,9 +7712,9 @@ $.fn.dropdown = function(parameters) {
7712
7712
  .filter(function() {
7713
7713
  // First find the last divider in this divider group
7714
7714
  // Dividers which are direct siblings are considered a group
7715
- var lastDivider = $(this).nextUntil(selector.item);
7715
+ var $lastDivider = $(this).nextUntil(selector.item);
7716
7716
 
7717
- return (lastDivider.length ? lastDivider : $(this))
7717
+ return ($lastDivider.length ? $lastDivider : $(this))
7718
7718
  // Count all non-filtered items until the next divider (or end of the dropdown)
7719
7719
  .nextUntil(selector.divider)
7720
7720
  .filter(selector.item + ":not(." + className.filtered + ")")
@@ -7769,18 +7769,18 @@ $.fn.dropdown = function(parameters) {
7769
7769
  if( module.has.search() && !module.is.focusedOnSearch() ) {
7770
7770
  if(skipHandler) {
7771
7771
  $module.off('focus' + eventNamespace, selector.search);
7772
- $search.focus();
7772
+ $search.trigger('focus');
7773
7773
  $module.on('focus' + eventNamespace, selector.search, module.event.search.focus);
7774
7774
  }
7775
7775
  else {
7776
- $search.focus();
7776
+ $search.trigger('focus');
7777
7777
  }
7778
7778
  }
7779
7779
  },
7780
7780
 
7781
7781
  blurSearch: function() {
7782
7782
  if( module.has.search() ) {
7783
- $search.blur();
7783
+ $search.trigger('blur');
7784
7784
  }
7785
7785
  },
7786
7786
 
@@ -8141,7 +8141,7 @@ $.fn.dropdown = function(parameters) {
8141
8141
  ;
8142
8142
  // prevents IE11 bug where menu receives focus even though `tabindex=-1`
8143
8143
  if (document.activeElement.tagName.toLowerCase() !== 'input') {
8144
- $(document.activeElement).blur();
8144
+ $(document.activeElement).trigger('blur');
8145
8145
  }
8146
8146
  if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {
8147
8147
  if(module.is.searchSelection()) {
@@ -8342,7 +8342,7 @@ $.fn.dropdown = function(parameters) {
8342
8342
  if(module.is.searchSelection()) {
8343
8343
  module.remove.searchTerm();
8344
8344
  if(module.is.multiple()) {
8345
- $search.focus();
8345
+ $search.trigger('focus');
8346
8346
  }
8347
8347
  }
8348
8348
  }
@@ -8498,11 +8498,11 @@ $.fn.dropdown = function(parameters) {
8498
8498
  selectAction: function(text, value) {
8499
8499
  selectActionActive = true;
8500
8500
  module.verbose('Determining action', settings.action);
8501
- if( $.isFunction( module.action[settings.action] ) ) {
8501
+ if( isFunction( module.action[settings.action] ) ) {
8502
8502
  module.verbose('Triggering preset action', settings.action, text, value);
8503
8503
  module.action[ settings.action ].call(element, text, value, this);
8504
8504
  }
8505
- else if( $.isFunction(settings.action) ) {
8505
+ else if( isFunction(settings.action) ) {
8506
8506
  module.verbose('Triggering user action', settings.action, text, value);
8507
8507
  settings.action.call(element, text, value, this);
8508
8508
  }
@@ -8517,7 +8517,7 @@ $.fn.dropdown = function(parameters) {
8517
8517
  inDocument = ($target.closest(document.documentElement).length > 0),
8518
8518
  inModule = ($target.closest($module).length > 0)
8519
8519
  ;
8520
- callback = $.isFunction(callback)
8520
+ callback = isFunction(callback)
8521
8521
  ? callback
8522
8522
  : function(){}
8523
8523
  ;
@@ -8539,7 +8539,7 @@ $.fn.dropdown = function(parameters) {
8539
8539
  notOnLabel = ($module.find($label).length === 0 || !(module.is.multiple() && settings.useLabels)),
8540
8540
  notInMenu = ($target.closest($menu).length === 0)
8541
8541
  ;
8542
- callback = $.isFunction(callback)
8542
+ callback = isFunction(callback)
8543
8543
  ? callback
8544
8544
  : function(){}
8545
8545
  ;
@@ -8854,7 +8854,7 @@ $.fn.dropdown = function(parameters) {
8854
8854
  values.sort(function(a, b) {
8855
8855
  return (a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
8856
8856
  });
8857
- } else if($.isFunction(settings.sortSelect)) {
8857
+ } else if(isFunction(settings.sortSelect)) {
8858
8858
  values.sort(settings.sortSelect);
8859
8859
  }
8860
8860
  select[fields.values] = values;
@@ -9226,7 +9226,7 @@ $.fn.dropdown = function(parameters) {
9226
9226
  ;
9227
9227
  if(isMultiple && hasSearchValue) {
9228
9228
  module.verbose('Adjusting input width', searchWidth, settings.glyphWidth);
9229
- $search.css('width', searchWidth);
9229
+ $search.css('width', searchWidth + 'px');
9230
9230
  }
9231
9231
  if(hasSearchValue || (isSearchMultiple && valueIsSet)) {
9232
9232
  module.verbose('Hiding placeholder text');
@@ -9264,13 +9264,14 @@ $.fn.dropdown = function(parameters) {
9264
9264
  module.debug('Added tabindex to dropdown');
9265
9265
  if( $module.attr('tabindex') === undefined) {
9266
9266
  $module
9267
- .attr('tabindex', 0)
9267
+ .attr('tabindex', $input.attr('tabindex') || 0)
9268
9268
  ;
9269
9269
  $menu
9270
9270
  .attr('tabindex', -1)
9271
9271
  ;
9272
9272
  }
9273
9273
  }
9274
+ $input.removeAttr('tabindex');
9274
9275
  },
9275
9276
  initialLoad: function() {
9276
9277
  module.verbose('Setting initial load');
@@ -10407,7 +10408,7 @@ $.fn.dropdown = function(parameters) {
10407
10408
  },
10408
10409
  transition
10409
10410
  ;
10410
- callback = $.isFunction(callback)
10411
+ callback = isFunction(callback)
10411
10412
  ? callback
10412
10413
  : function(){}
10413
10414
  ;
@@ -10458,7 +10459,7 @@ $.fn.dropdown = function(parameters) {
10458
10459
  },
10459
10460
  transition = settings.transition.hideMethod || module.get.transition($subMenu)
10460
10461
  ;
10461
- callback = $.isFunction(callback)
10462
+ callback = isFunction(callback)
10462
10463
  ? callback
10463
10464
  : function(){}
10464
10465
  ;
@@ -10716,7 +10717,7 @@ $.fn.dropdown = function(parameters) {
10716
10717
  }
10717
10718
  });
10718
10719
  }
10719
- if ( $.isFunction( found ) ) {
10720
+ if ( isFunction( found ) ) {
10720
10721
  response = found.apply(context, passedArguments);
10721
10722
  }
10722
10723
  else if(found !== undefined) {
@@ -11132,7 +11133,7 @@ $.fn.dropdown.settings.templates = {
11132
11133
  })( jQuery, window, document );
11133
11134
 
11134
11135
  /*!
11135
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Embed
11136
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Embed
11136
11137
  * https://github.com/fomantic/Fomantic-UI/
11137
11138
  *
11138
11139
  *
@@ -11145,9 +11146,9 @@ $.fn.dropdown.settings.templates = {
11145
11146
 
11146
11147
  "use strict";
11147
11148
 
11148
- $.isFunction = $.isFunction || function(obj) {
11149
+ function isFunction(obj) {
11149
11150
  return typeof obj === "function" && typeof obj.nodeType !== "number";
11150
- };
11151
+ }
11151
11152
 
11152
11153
  window = (typeof window != 'undefined' && window.Math == Math)
11153
11154
  ? window
@@ -11669,7 +11670,7 @@ $.fn.embed = function(parameters) {
11669
11670
  }
11670
11671
  });
11671
11672
  }
11672
- if ( $.isFunction( found ) ) {
11673
+ if ( isFunction( found ) ) {
11673
11674
  response = found.apply(context, passedArguments);
11674
11675
  }
11675
11676
  else if(found !== undefined) {
@@ -11846,7 +11847,7 @@ $.fn.embed.settings = {
11846
11847
  })( jQuery, window, document );
11847
11848
 
11848
11849
  /*!
11849
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Flyout
11850
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Flyout
11850
11851
  * https://github.com/fomantic/Fomantic-UI/
11851
11852
  *
11852
11853
  *
@@ -11859,9 +11860,9 @@ $.fn.embed.settings = {
11859
11860
 
11860
11861
  'use strict';
11861
11862
 
11862
- $.isFunction = $.isFunction || function(obj) {
11863
+ function isFunction(obj) {
11863
11864
  return typeof obj === "function" && typeof obj.nodeType !== "number";
11864
- };
11865
+ }
11865
11866
 
11866
11867
  window = (typeof window != 'undefined' && window.Math == Math)
11867
11868
  ? window
@@ -11952,7 +11953,7 @@ $.flyout = $.fn.flyout = function(parameters) {
11952
11953
  module.create.id();
11953
11954
  if(!isFlyoutComponent) {
11954
11955
  module.create.flyout();
11955
- if(!$.isFunction(settings.onHidden)) {
11956
+ if(!isFunction(settings.onHidden)) {
11956
11957
  settings.onHidden = function () {
11957
11958
  module.destroy();
11958
11959
  $module.remove();
@@ -11981,17 +11982,19 @@ $.flyout = $.fn.flyout = function(parameters) {
11981
11982
  icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
11982
11983
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
11983
11984
  cls = module.helpers.deQuote(el[fields.class] || ''),
11984
- click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {}
11985
+ click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {}
11985
11986
  ;
11986
11987
  $actions.append($('<button/>', {
11987
11988
  html: icon + text,
11988
11989
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
11989
11990
  class: className.button + ' ' + cls,
11990
- click: function () {
11991
- if (click.call(element, $module) === false) {
11992
- return;
11991
+ on: {
11992
+ click: function () {
11993
+ if (click.call(element, $module) === false) {
11994
+ return;
11995
+ }
11996
+ module.hide();
11993
11997
  }
11994
- module.hide();
11995
11998
  }
11996
11999
  }));
11997
12000
  });
@@ -12137,7 +12140,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12137
12140
  keyCode = event.which
12138
12141
  ;
12139
12142
  if (keyCode === settings.keys.tab && event.shiftKey) {
12140
- $inputs.last().focus();
12143
+ $inputs.last().trigger('focus');
12141
12144
  event.preventDefault();
12142
12145
  }
12143
12146
  },
@@ -12146,7 +12149,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12146
12149
  keyCode = event.which
12147
12150
  ;
12148
12151
  if (keyCode === settings.keys.tab && !event.shiftKey) {
12149
- $inputs.first().focus();
12152
+ $inputs.first().trigger('focus');
12150
12153
  event.preventDefault();
12151
12154
  }
12152
12155
  }
@@ -12426,7 +12429,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12426
12429
  var
12427
12430
  $toggle = $(selector)
12428
12431
  ;
12429
- event = $.isFunction(module[event])
12432
+ event = isFunction(module[event])
12430
12433
  ? module[event]
12431
12434
  : module.toggle
12432
12435
  ;
@@ -12442,7 +12445,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12442
12445
  },
12443
12446
 
12444
12447
  show: function(callback) {
12445
- callback = $.isFunction(callback)
12448
+ callback = isFunction(callback)
12446
12449
  ? callback
12447
12450
  : function(){}
12448
12451
  ;
@@ -12481,7 +12484,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12481
12484
  },
12482
12485
 
12483
12486
  hide: function(callback) {
12484
- callback = $.isFunction(callback)
12487
+ callback = isFunction(callback)
12485
12488
  ? callback
12486
12489
  : function(){}
12487
12490
  ;
@@ -12495,7 +12498,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12495
12498
  module.refreshFlyouts();
12496
12499
  module.pullPage(function() {
12497
12500
  callback.call(element);
12498
- if($.isFunction(settings.onHidden)) {
12501
+ if(isFunction(settings.onHidden)) {
12499
12502
  settings.onHidden.call(element);
12500
12503
  }
12501
12504
  module.restore.focus();
@@ -12547,7 +12550,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12547
12550
  dim,
12548
12551
  transitionEnd
12549
12552
  ;
12550
- callback = $.isFunction(callback)
12553
+ callback = isFunction(callback)
12551
12554
  ? callback
12552
12555
  : function(){}
12553
12556
  ;
@@ -12585,7 +12588,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12585
12588
  animate,
12586
12589
  transitionEnd
12587
12590
  ;
12588
- callback = $.isFunction(callback)
12591
+ callback = isFunction(callback)
12589
12592
  ? callback
12590
12593
  : function(){}
12591
12594
  ;
@@ -12656,7 +12659,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12656
12659
  : ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
12657
12660
  ;
12658
12661
  if($input.length > 0) {
12659
- $input.focus();
12662
+ $input.trigger('focus');
12660
12663
  }
12661
12664
  },
12662
12665
  dimmerStyles: function() {
@@ -12825,7 +12828,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12825
12828
  inCurrentFlyout = $activeElement.closest($module).length > 0
12826
12829
  ;
12827
12830
  if(!inCurrentFlyout) {
12828
- $focusedElement = $(document.activeElement).blur();
12831
+ $focusedElement = $(document.activeElement).trigger('blur');
12829
12832
  }
12830
12833
  },
12831
12834
  bodyMargin: function() {
@@ -12925,7 +12928,7 @@ $.flyout = $.fn.flyout = function(parameters) {
12925
12928
  restore: {
12926
12929
  focus: function() {
12927
12930
  if($focusedElement && $focusedElement.length > 0 && settings.restoreFocus) {
12928
- $focusedElement.focus();
12931
+ $focusedElement.trigger('focus');
12929
12932
  }
12930
12933
  },
12931
12934
  bodyMargin: function() {
@@ -13114,7 +13117,7 @@ $.flyout = $.fn.flyout = function(parameters) {
13114
13117
  }
13115
13118
  });
13116
13119
  }
13117
- if ( $.isFunction( found ) ) {
13120
+ if ( isFunction( found ) ) {
13118
13121
  response = found.apply(context, passedArguments);
13119
13122
  }
13120
13123
  else if(found !== undefined) {
@@ -13136,7 +13139,7 @@ $.flyout = $.fn.flyout = function(parameters) {
13136
13139
 
13137
13140
  if(methodInvoked) {
13138
13141
  if(instance === undefined) {
13139
- if ($.isFunction(settings.templates[query])) {
13142
+ if (isFunction(settings.templates[query])) {
13140
13143
  settings.autoShow = true;
13141
13144
  settings.className.flyout = settings.className.template;
13142
13145
  settings = $.extend(true, {}, settings, settings.templates[query].apply(module ,queryArguments));
@@ -13149,7 +13152,7 @@ $.flyout = $.fn.flyout = function(parameters) {
13149
13152
  }
13150
13153
  module.initialize();
13151
13154
  }
13152
- if (!$.isFunction(settings.templates[query])) {
13155
+ if (!isFunction(settings.templates[query])) {
13153
13156
  module.invoke(query);
13154
13157
  }
13155
13158
  }
@@ -13299,7 +13302,7 @@ $.fn.flyout.settings.templates = {
13299
13302
  title: ''
13300
13303
  }, queryArguments[0]);
13301
13304
  } else {
13302
- if(!$.isFunction(queryArguments[queryArguments.length-1])) {
13305
+ if(!isFunction(queryArguments[queryArguments.length-1])) {
13303
13306
  queryArguments.push(function() {});
13304
13307
  }
13305
13308
  return {
@@ -13377,7 +13380,7 @@ $.fn.flyout.settings.templates = {
13377
13380
  })( jQuery, window, document );
13378
13381
 
13379
13382
  /*!
13380
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Modal
13383
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Modal
13381
13384
  * https://github.com/fomantic/Fomantic-UI/
13382
13385
  *
13383
13386
  *
@@ -13390,9 +13393,9 @@ $.fn.flyout.settings.templates = {
13390
13393
 
13391
13394
  'use strict';
13392
13395
 
13393
- $.isFunction = $.isFunction || function(obj) {
13396
+ function isFunction(obj) {
13394
13397
  return typeof obj === "function" && typeof obj.nodeType !== "number";
13395
- };
13398
+ }
13396
13399
 
13397
13400
  window = (typeof window != 'undefined' && window.Math == Math)
13398
13401
  ? window
@@ -13479,7 +13482,7 @@ $.modal = $.fn.modal = function(parameters) {
13479
13482
  module.create.id();
13480
13483
  if(!isModalComponent) {
13481
13484
  module.create.modal();
13482
- if(!$.isFunction(settings.onHidden)) {
13485
+ if(!isFunction(settings.onHidden)) {
13483
13486
  settings.onHidden = function () {
13484
13487
  module.destroy();
13485
13488
  $module.remove();
@@ -13504,17 +13507,19 @@ $.modal = $.fn.modal = function(parameters) {
13504
13507
  var icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
13505
13508
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
13506
13509
  cls = module.helpers.deQuote(el[fields.class] || ''),
13507
- click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {};
13510
+ click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {};
13508
13511
  $actions.append($('<button/>', {
13509
13512
  html: icon + text,
13510
13513
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
13511
13514
  class: className.button + ' ' + cls,
13512
- click: function () {
13513
- var button = $(this);
13514
- if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
13515
- return;
13515
+ on: {
13516
+ click: function () {
13517
+ var button = $(this);
13518
+ if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
13519
+ return;
13520
+ }
13521
+ module.hide();
13516
13522
  }
13517
- module.hide();
13518
13523
  }
13519
13524
  }));
13520
13525
  });
@@ -13677,7 +13682,7 @@ $.modal = $.fn.modal = function(parameters) {
13677
13682
  var
13678
13683
  $toggle = $(selector)
13679
13684
  ;
13680
- event = $.isFunction(module[event])
13685
+ event = isFunction(module[event])
13681
13686
  ? module[event]
13682
13687
  : module.toggle
13683
13688
  ;
@@ -13775,7 +13780,7 @@ $.modal = $.fn.modal = function(parameters) {
13775
13780
  keyCode = event.which
13776
13781
  ;
13777
13782
  if (keyCode === settings.keys.tab && event.shiftKey) {
13778
- $inputs.last().focus();
13783
+ $inputs.last().trigger('focus');
13779
13784
  event.preventDefault();
13780
13785
  }
13781
13786
  },
@@ -13784,7 +13789,7 @@ $.modal = $.fn.modal = function(parameters) {
13784
13789
  keyCode = event.which
13785
13790
  ;
13786
13791
  if (keyCode === settings.keys.tab && !event.shiftKey) {
13787
- $inputs.first().focus();
13792
+ $inputs.first().trigger('focus');
13788
13793
  event.preventDefault();
13789
13794
  }
13790
13795
  }
@@ -13872,7 +13877,7 @@ $.modal = $.fn.modal = function(parameters) {
13872
13877
  },
13873
13878
 
13874
13879
  show: function(callback) {
13875
- callback = $.isFunction(callback)
13880
+ callback = isFunction(callback)
13876
13881
  ? callback
13877
13882
  : function(){}
13878
13883
  ;
@@ -13884,7 +13889,7 @@ $.modal = $.fn.modal = function(parameters) {
13884
13889
  },
13885
13890
 
13886
13891
  hide: function(callback) {
13887
- callback = $.isFunction(callback)
13892
+ callback = isFunction(callback)
13888
13893
  ? callback
13889
13894
  : function(){}
13890
13895
  ;
@@ -13893,7 +13898,7 @@ $.modal = $.fn.modal = function(parameters) {
13893
13898
  },
13894
13899
 
13895
13900
  showModal: function(callback) {
13896
- callback = $.isFunction(callback)
13901
+ callback = isFunction(callback)
13897
13902
  ? callback
13898
13903
  : function(){}
13899
13904
  ;
@@ -13975,7 +13980,7 @@ $.modal = $.fn.modal = function(parameters) {
13975
13980
  var
13976
13981
  $previousModal = $otherModals.filter('.' + className.active).last()
13977
13982
  ;
13978
- callback = $.isFunction(callback)
13983
+ callback = isFunction(callback)
13979
13984
  ? callback
13980
13985
  : function(){}
13981
13986
  ;
@@ -14019,7 +14024,7 @@ $.modal = $.fn.modal = function(parameters) {
14019
14024
  $previousModal.find(selector.dimmer).removeClass('active');
14020
14025
  }
14021
14026
  }
14022
- if($.isFunction(settings.onHidden)) {
14027
+ if(isFunction(settings.onHidden)) {
14023
14028
  settings.onHidden.call(element);
14024
14029
  }
14025
14030
  module.remove.dimmerStyles();
@@ -14071,7 +14076,7 @@ $.modal = $.fn.modal = function(parameters) {
14071
14076
  var
14072
14077
  $visibleModals = $allModals.filter('.' + className.active + ', .' + className.animating)
14073
14078
  ;
14074
- callback = $.isFunction(callback)
14079
+ callback = isFunction(callback)
14075
14080
  ? callback
14076
14081
  : function(){}
14077
14082
  ;
@@ -14095,7 +14100,7 @@ $.modal = $.fn.modal = function(parameters) {
14095
14100
  var
14096
14101
  $visibleModals = $otherModals.filter('.' + className.active + ', .' + className.animating)
14097
14102
  ;
14098
- callback = $.isFunction(callback)
14103
+ callback = isFunction(callback)
14099
14104
  ? callback
14100
14105
  : function(){}
14101
14106
  ;
@@ -14133,7 +14138,7 @@ $.modal = $.fn.modal = function(parameters) {
14133
14138
  inCurrentModal = $activeElement.closest($module).length > 0
14134
14139
  ;
14135
14140
  if(!inCurrentModal) {
14136
- $focusedElement = $(document.activeElement).blur();
14141
+ $focusedElement = $(document.activeElement).trigger('blur');
14137
14142
  }
14138
14143
  },
14139
14144
  bodyMargin: function() {
@@ -14147,7 +14152,7 @@ $.modal = $.fn.modal = function(parameters) {
14147
14152
  restore: {
14148
14153
  focus: function() {
14149
14154
  if($focusedElement && $focusedElement.length > 0 && settings.restoreFocus) {
14150
- $focusedElement.focus();
14155
+ $focusedElement.trigger('focus');
14151
14156
  }
14152
14157
  },
14153
14158
  bodyMargin: function() {
@@ -14371,7 +14376,7 @@ $.modal = $.fn.modal = function(parameters) {
14371
14376
  : ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
14372
14377
  ;
14373
14378
  if($input.length > 0) {
14374
- $input.focus();
14379
+ $input.trigger('focus');
14375
14380
  }
14376
14381
  },
14377
14382
  bodyMargin: function() {
@@ -14471,7 +14476,7 @@ $.modal = $.fn.modal = function(parameters) {
14471
14476
  else if(!$module.hasClass('bottom')) {
14472
14477
  module.debug('Modal is taller than page content, resizing page height');
14473
14478
  $context
14474
- .css('height', module.cache.height + (settings.padding * 2) )
14479
+ .css('height', module.cache.height + (settings.padding * 2) + 'px')
14475
14480
  ;
14476
14481
  }
14477
14482
  },
@@ -14650,7 +14655,7 @@ $.modal = $.fn.modal = function(parameters) {
14650
14655
  }
14651
14656
  });
14652
14657
  }
14653
- if ( $.isFunction( found ) ) {
14658
+ if ( isFunction( found ) ) {
14654
14659
  response = found.apply(context, passedArguments);
14655
14660
  }
14656
14661
  else if(found !== undefined) {
@@ -14671,7 +14676,7 @@ $.modal = $.fn.modal = function(parameters) {
14671
14676
 
14672
14677
  if(methodInvoked) {
14673
14678
  if(instance === undefined) {
14674
- if ($.isFunction(settings.templates[query])) {
14679
+ if (isFunction(settings.templates[query])) {
14675
14680
  settings.autoShow = true;
14676
14681
  settings.className.modal = settings.className.template;
14677
14682
  settings = $.extend(true, {}, settings, settings.templates[query].apply(module ,queryArguments));
@@ -14684,7 +14689,7 @@ $.modal = $.fn.modal = function(parameters) {
14684
14689
  }
14685
14690
  module.initialize();
14686
14691
  }
14687
- if (!$.isFunction(settings.templates[query])) {
14692
+ if (!isFunction(settings.templates[query])) {
14688
14693
  module.invoke(query);
14689
14694
  }
14690
14695
  }
@@ -14849,7 +14854,7 @@ $.fn.modal.settings.templates = {
14849
14854
  title: ''
14850
14855
  }, queryArguments[0]);
14851
14856
  } else {
14852
- if(!$.isFunction(queryArguments[queryArguments.length-1])) {
14857
+ if(!isFunction(queryArguments[queryArguments.length-1])) {
14853
14858
  queryArguments.push(function() {});
14854
14859
  }
14855
14860
  return {
@@ -14934,7 +14939,7 @@ $.fn.modal.settings.templates = {
14934
14939
  })( jQuery, window, document );
14935
14940
 
14936
14941
  /*!
14937
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Nag
14942
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Nag
14938
14943
  * https://github.com/fomantic/Fomantic-UI/
14939
14944
  *
14940
14945
  *
@@ -14947,9 +14952,9 @@ $.fn.modal.settings.templates = {
14947
14952
 
14948
14953
  'use strict';
14949
14954
 
14950
- $.isFunction = $.isFunction || function(obj) {
14955
+ function isFunction(obj) {
14951
14956
  return typeof obj === "function" && typeof obj.nodeType !== "number";
14952
- };
14957
+ }
14953
14958
 
14954
14959
  window = (typeof window != 'undefined' && window.Math == Math)
14955
14960
  ? window
@@ -15370,7 +15375,7 @@ $.fn.nag = function(parameters) {
15370
15375
  }
15371
15376
  });
15372
15377
  }
15373
- if ( $.isFunction( found ) ) {
15378
+ if ( isFunction( found ) ) {
15374
15379
  response = found.apply(context, passedArguments);
15375
15380
  }
15376
15381
  else if(found !== undefined) {
@@ -15488,15 +15493,15 @@ $.fn.nag.settings = {
15488
15493
 
15489
15494
  // Adds easing
15490
15495
  $.extend( $.easing, {
15491
- easeOutQuad: function (x, t, b, c, d) {
15492
- return -c *(t/=d)*(t-2) + b;
15496
+ easeOutQuad: function (x) {
15497
+ return 1 - (1 - x) * (1 - x);
15493
15498
  }
15494
15499
  });
15495
15500
 
15496
15501
  })( jQuery, window, document );
15497
15502
 
15498
15503
  /*!
15499
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Popup
15504
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Popup
15500
15505
  * https://github.com/fomantic/Fomantic-UI/
15501
15506
  *
15502
15507
  *
@@ -15509,9 +15514,9 @@ $.extend( $.easing, {
15509
15514
 
15510
15515
  'use strict';
15511
15516
 
15512
- $.isFunction = $.isFunction || function(obj) {
15517
+ function isFunction(obj) {
15513
15518
  return typeof obj === "function" && typeof obj.nodeType !== "number";
15514
- };
15519
+ }
15515
15520
 
15516
15521
  window = (typeof window != 'undefined' && window.Math == Math)
15517
15522
  ? window
@@ -15926,7 +15931,7 @@ $.fn.popup = function(parameters) {
15926
15931
  },
15927
15932
  animate: {
15928
15933
  show: function(callback) {
15929
- callback = $.isFunction(callback) ? callback : function(){};
15934
+ callback = isFunction(callback) ? callback : function(){};
15930
15935
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
15931
15936
  module.set.visible();
15932
15937
  $popup
@@ -15950,7 +15955,7 @@ $.fn.popup = function(parameters) {
15950
15955
  }
15951
15956
  },
15952
15957
  hide: function(callback) {
15953
- callback = $.isFunction(callback) ? callback : function(){};
15958
+ callback = isFunction(callback) ? callback : function(){};
15954
15959
  module.debug('Hiding pop-up');
15955
15960
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
15956
15961
  $popup
@@ -16008,16 +16013,16 @@ $.fn.popup = function(parameters) {
16008
16013
  var
16009
16014
  $popupOffsetParent = module.get.offsetParent($popup),
16010
16015
  targetElement = $target[0],
16011
- isWindow = ($boundary[0] == window),
16016
+ isWindowEl = ($boundary[0] == window),
16012
16017
  targetOffset = $target.offset(),
16013
16018
  parentOffset = settings.inline || (settings.popup && settings.movePopup)
16014
16019
  ? $target.offsetParent().offset()
16015
16020
  : { top: 0, left: 0 },
16016
- screenPosition = (isWindow)
16021
+ screenPosition = (isWindowEl)
16017
16022
  ? { top: 0, left: 0 }
16018
16023
  : $boundary.offset(),
16019
16024
  calculations = {},
16020
- scroll = (isWindow)
16025
+ scroll = (isWindowEl)
16021
16026
  ? { top: $window.scrollTop(), left: $window.scrollLeft() }
16022
16027
  : { top: 0, left: 0},
16023
16028
  screen
@@ -16781,7 +16786,7 @@ $.fn.popup = function(parameters) {
16781
16786
  }
16782
16787
  });
16783
16788
  }
16784
- if ( $.isFunction( found ) ) {
16789
+ if ( isFunction( found ) ) {
16785
16790
  response = found.apply(context, passedArguments);
16786
16791
  }
16787
16792
  else if(found !== undefined) {
@@ -17032,7 +17037,7 @@ $.fn.popup.settings = {
17032
17037
  })( jQuery, window, document );
17033
17038
 
17034
17039
  /*!
17035
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Progress
17040
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Progress
17036
17041
  * https://github.com/fomantic/Fomantic-UI/
17037
17042
  *
17038
17043
  *
@@ -17045,9 +17050,9 @@ $.fn.popup.settings = {
17045
17050
 
17046
17051
  'use strict';
17047
17052
 
17048
- $.isFunction = $.isFunction || function(obj) {
17053
+ function isFunction(obj) {
17049
17054
  return typeof obj === "function" && typeof obj.nodeType !== "number";
17050
- };
17055
+ }
17051
17056
 
17052
17057
  window = (typeof window != 'undefined' && window.Math == Math)
17053
17058
  ? window
@@ -17508,10 +17513,10 @@ $.fn.progress = function(parameters) {
17508
17513
  values.forEach(function(_, index) {
17509
17514
  var $bar = $($bars[index]);
17510
17515
  $bar.css({
17511
- borderTopLeftRadius: index == firstNonZeroIndex ? '' : 0,
17512
- borderBottomLeftRadius: index == firstNonZeroIndex ? '' : 0,
17513
- borderTopRightRadius: index == lastNonZeroIndex ? '' : 0,
17514
- borderBottomRightRadius: index == lastNonZeroIndex ? '' : 0
17516
+ borderTopLeftRadius: index == firstNonZeroIndex ? '' : '0',
17517
+ borderBottomLeftRadius: index == firstNonZeroIndex ? '' : '0',
17518
+ borderTopRightRadius: index == lastNonZeroIndex ? '' : '0',
17519
+ borderBottomRightRadius: index == lastNonZeroIndex ? '' : '0'
17515
17520
  });
17516
17521
  });
17517
17522
  $module
@@ -17939,7 +17944,7 @@ $.fn.progress = function(parameters) {
17939
17944
  }
17940
17945
  });
17941
17946
  }
17942
- if ( $.isFunction( found ) ) {
17947
+ if ( isFunction( found ) ) {
17943
17948
  response = found.apply(context, passedArguments);
17944
17949
  }
17945
17950
  else if(found !== undefined) {
@@ -18069,7 +18074,7 @@ $.fn.progress.settings = {
18069
18074
  })( jQuery, window, document );
18070
18075
 
18071
18076
  /*!
18072
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Slider
18077
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Slider
18073
18078
  * https://github.com/fomantic/Fomantic-UI/
18074
18079
  *
18075
18080
  *
@@ -18082,6 +18087,10 @@ $.fn.progress.settings = {
18082
18087
 
18083
18088
  "use strict";
18084
18089
 
18090
+ function isFunction(obj) {
18091
+ return typeof obj === "function" && typeof obj.nodeType !== "number";
18092
+ }
18093
+
18085
18094
  window = (typeof window != 'undefined' && window.Math == Math)
18086
18095
  ? window
18087
18096
  : (typeof self != 'undefined' && self.Math == Math)
@@ -18093,6 +18102,7 @@ $.fn.slider = function(parameters) {
18093
18102
 
18094
18103
  var
18095
18104
  $allModules = $(this),
18105
+ $document = $(document),
18096
18106
  $window = $(window),
18097
18107
 
18098
18108
  moduleSelector = $allModules.selector || '',
@@ -18306,7 +18316,7 @@ $.fn.slider = function(parameters) {
18306
18316
  $module.on('keydown' + eventNamespace, module.event.keydown);
18307
18317
  },
18308
18318
  globalKeyboardEvents: function() {
18309
- $(document).on('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
18319
+ $document.on('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
18310
18320
  },
18311
18321
  mouseEvents: function() {
18312
18322
  module.verbose('Binding mouse and touch events');
@@ -18334,8 +18344,8 @@ $.fn.slider = function(parameters) {
18334
18344
  slidingEvents: function() {
18335
18345
  // these don't need the identifier because we only ever want one of them to be registered with document
18336
18346
  module.verbose('Binding page wide events while handle is being draged');
18337
- $(document).on('mousemove' + eventNamespace, module.event.move);
18338
- $(document).on('mouseup' + eventNamespace, module.event.up);
18347
+ $document.on('mousemove' + eventNamespace, module.event.move);
18348
+ $document.on('mouseup' + eventNamespace, module.event.up);
18339
18349
  },
18340
18350
  windowEvents: function() {
18341
18351
  $window.on('resize' + eventNamespace, module.event.resize);
@@ -18355,12 +18365,12 @@ $.fn.slider = function(parameters) {
18355
18365
  .off('touchcancel' + eventNamespace);
18356
18366
  $module.off('keydown' + eventNamespace);
18357
18367
  $module.off('focusout' + eventNamespace);
18358
- $(document).off('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
18368
+ $document.off('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
18359
18369
  $window.off('resize' + eventNamespace);
18360
18370
  },
18361
18371
  slidingEvents: function() {
18362
- $(document).off('mousemove' + eventNamespace);
18363
- $(document).off('mouseup' + eventNamespace);
18372
+ $document.off('mousemove' + eventNamespace);
18373
+ $document.off('mouseup' + eventNamespace);
18364
18374
  },
18365
18375
  },
18366
18376
 
@@ -18476,7 +18486,7 @@ $.fn.slider = function(parameters) {
18476
18486
  $currThumb = undefined;
18477
18487
  }
18478
18488
  if(module.is.focused()) {
18479
- $(document).trigger(event);
18489
+ $document.trigger(event);
18480
18490
  }
18481
18491
  if(first || module.is.focused()) {
18482
18492
  var step = module.determine.keyMovement(event);
@@ -18503,7 +18513,7 @@ $.fn.slider = function(parameters) {
18503
18513
  if(!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) != NO_STEP) {
18504
18514
  event.preventDefault();
18505
18515
  module.event.keydown(event, true);
18506
- $module.focus();
18516
+ $module.trigger('focus');
18507
18517
  }
18508
18518
  },
18509
18519
  resize: function(_event) {
@@ -18727,9 +18737,9 @@ $.fn.slider = function(parameters) {
18727
18737
  },
18728
18738
  gapRatio: function() {
18729
18739
  var gapRatio = 1;
18730
-
18740
+
18731
18741
  if( settings.autoAdjustLabels ) {
18732
- var
18742
+ var
18733
18743
  numLabels = module.get.numLabels(),
18734
18744
  trackLength = module.get.trackLength(),
18735
18745
  gapCounter = 1
@@ -19306,13 +19316,13 @@ $.fn.slider = function(parameters) {
19306
19316
  }
19307
19317
  });
19308
19318
  }
19309
- if ( $.isFunction( found ) ) {
19319
+ if ( isFunction( found ) ) {
19310
19320
  response = found.apply(context, passedArguments);
19311
19321
  }
19312
19322
  else if(found !== undefined) {
19313
19323
  response = found;
19314
19324
  }
19315
- if($.isArray(returnedValue)) {
19325
+ if(Array.isArray(returnedValue)) {
19316
19326
  returnedValue.push(response);
19317
19327
  }
19318
19328
  else if(returnedValue !== undefined) {
@@ -19423,7 +19433,7 @@ $.fn.slider.settings = {
19423
19433
  })( jQuery, window, document );
19424
19434
 
19425
19435
  /*!
19426
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Rating
19436
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Rating
19427
19437
  * https://github.com/fomantic/Fomantic-UI/
19428
19438
  *
19429
19439
  *
@@ -19436,9 +19446,9 @@ $.fn.slider.settings = {
19436
19446
 
19437
19447
  'use strict';
19438
19448
 
19439
- $.isFunction = $.isFunction || function(obj) {
19449
+ function isFunction(obj) {
19440
19450
  return typeof obj === "function" && typeof obj.nodeType !== "number";
19441
- };
19451
+ }
19442
19452
 
19443
19453
  window = (typeof window != 'undefined' && window.Math == Math)
19444
19454
  ? window
@@ -19871,7 +19881,7 @@ $.fn.rating = function(parameters) {
19871
19881
  }
19872
19882
  });
19873
19883
  }
19874
- if ( $.isFunction( found ) ) {
19884
+ if ( isFunction( found ) ) {
19875
19885
  response = found.apply(context, passedArguments);
19876
19886
  }
19877
19887
  else if(found !== undefined) {
@@ -19982,7 +19992,7 @@ $.fn.rating.settings = {
19982
19992
  })( jQuery, window, document );
19983
19993
 
19984
19994
  /*!
19985
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Search
19995
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Search
19986
19996
  * https://github.com/fomantic/Fomantic-UI/
19987
19997
  *
19988
19998
  *
@@ -19995,7 +20005,7 @@ $.fn.rating.settings = {
19995
20005
 
19996
20006
  'use strict';
19997
20007
 
19998
- $.isFunction = $.isFunction || function(obj) {
20008
+ function isFunction(obj) {
19999
20009
  return typeof obj === "function" && typeof obj.nodeType !== "number";
20000
20010
  };
20001
20011
 
@@ -20171,7 +20181,7 @@ $.fn.search = function(parameters) {
20171
20181
  $module
20172
20182
  .one('click.close' + eventNamespace, selector.results, function(event) {
20173
20183
  if(module.is.inMessage(event) || disabledBubbled) {
20174
- $prompt.focus();
20184
+ $prompt.trigger('focus');
20175
20185
  return;
20176
20186
  }
20177
20187
  disabledBubbled = false;
@@ -20211,7 +20221,7 @@ $.fn.search = function(parameters) {
20211
20221
  result = $result.data(metadata.result) || module.get.result(value, results)
20212
20222
  ;
20213
20223
  var oldValue = module.get.value();
20214
- if( $.isFunction(settings.onSelect) ) {
20224
+ if( isFunction(settings.onSelect) ) {
20215
20225
  if(settings.onSelect.call(element, result, results) === false) {
20216
20226
  module.debug('Custom onSelect callback cancelled default select action');
20217
20227
  disabledBubbled = true;
@@ -20278,7 +20288,7 @@ $.fn.search = function(parameters) {
20278
20288
  if(keyCode == keys.escape) {
20279
20289
  if(!module.is.visible()) {
20280
20290
  module.verbose('Escape key pressed, blurring search field');
20281
- $prompt.blur();
20291
+ $prompt.trigger('blur');
20282
20292
  } else {
20283
20293
  module.hideResults();
20284
20294
  }
@@ -20540,7 +20550,7 @@ $.fn.search = function(parameters) {
20540
20550
  },
20541
20551
 
20542
20552
  query: function(callback) {
20543
- callback = $.isFunction(callback)
20553
+ callback = isFunction(callback)
20544
20554
  ? callback
20545
20555
  : function(){}
20546
20556
  ;
@@ -20606,7 +20616,7 @@ $.fn.search = function(parameters) {
20606
20616
  });
20607
20617
  },
20608
20618
  remote: function(searchTerm, callback) {
20609
- callback = $.isFunction(callback)
20619
+ callback = isFunction(callback)
20610
20620
  ? callback
20611
20621
  : function(){}
20612
20622
  ;
@@ -20939,7 +20949,7 @@ $.fn.search = function(parameters) {
20939
20949
  },
20940
20950
 
20941
20951
  addResults: function(html) {
20942
- if( $.isFunction(settings.onResultsAdd) ) {
20952
+ if( isFunction(settings.onResultsAdd) ) {
20943
20953
  if( settings.onResultsAdd.call($results, html) === false ) {
20944
20954
  module.debug('onResultsAdd callback cancelled default action');
20945
20955
  return false;
@@ -20963,7 +20973,7 @@ $.fn.search = function(parameters) {
20963
20973
  },
20964
20974
 
20965
20975
  showResults: function(callback) {
20966
- callback = $.isFunction(callback)
20976
+ callback = isFunction(callback)
20967
20977
  ? callback
20968
20978
  : function(){}
20969
20979
  ;
@@ -21002,7 +21012,7 @@ $.fn.search = function(parameters) {
21002
21012
  }
21003
21013
  },
21004
21014
  hideResults: function(callback) {
21005
- callback = $.isFunction(callback)
21015
+ callback = isFunction(callback)
21006
21016
  ? callback
21007
21017
  : function(){}
21008
21018
  ;
@@ -21053,7 +21063,7 @@ $.fn.search = function(parameters) {
21053
21063
  response[fields.results] = response[fields.results].slice(0, settings.maxResults);
21054
21064
  }
21055
21065
  }
21056
- if($.isFunction(template)) {
21066
+ if(isFunction(template)) {
21057
21067
  html = template(response, fields, settings.preserveHTML);
21058
21068
  }
21059
21069
  else {
@@ -21214,7 +21224,7 @@ $.fn.search = function(parameters) {
21214
21224
  }
21215
21225
  });
21216
21226
  }
21217
- if( $.isFunction( found ) ) {
21227
+ if( isFunction( found ) ) {
21218
21228
  response = found.apply(context, passedArguments);
21219
21229
  }
21220
21230
  else if(found !== undefined) {
@@ -21577,7 +21587,7 @@ $.extend($.easing, {
21577
21587
  })( jQuery, window, document );
21578
21588
 
21579
21589
  /*!
21580
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Shape
21590
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Shape
21581
21591
  * https://github.com/fomantic/Fomantic-UI/
21582
21592
  *
21583
21593
  *
@@ -21590,9 +21600,9 @@ $.extend($.easing, {
21590
21600
 
21591
21601
  'use strict';
21592
21602
 
21593
- $.isFunction = $.isFunction || function(obj) {
21603
+ function isFunction(obj) {
21594
21604
  return typeof obj === "function" && typeof obj.nodeType !== "number";
21595
- };
21605
+ }
21596
21606
 
21597
21607
  window = (typeof window != 'undefined' && window.Math == Math)
21598
21608
  ? window
@@ -22313,7 +22323,7 @@ $.fn.shape = function(parameters) {
22313
22323
  }
22314
22324
  });
22315
22325
  }
22316
- if ( $.isFunction( found ) ) {
22326
+ if ( isFunction( found ) ) {
22317
22327
  response = found.apply(context, passedArguments);
22318
22328
  }
22319
22329
  else if(found !== undefined) {
@@ -22338,7 +22348,7 @@ $.fn.shape = function(parameters) {
22338
22348
  }
22339
22349
  var $inputs = $module.find('input');
22340
22350
  if( $inputs.length > 0) {
22341
- $inputs.blur();
22351
+ $inputs.trigger('blur');
22342
22352
  setTimeout(function(){
22343
22353
  module.invoke(query);
22344
22354
  }, 150);
@@ -22426,7 +22436,7 @@ $.fn.shape.settings = {
22426
22436
  })( jQuery, window, document );
22427
22437
 
22428
22438
  /*!
22429
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Sidebar
22439
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Sidebar
22430
22440
  * https://github.com/fomantic/Fomantic-UI/
22431
22441
  *
22432
22442
  *
@@ -22439,9 +22449,9 @@ $.fn.shape.settings = {
22439
22449
 
22440
22450
  'use strict';
22441
22451
 
22442
- $.isFunction = $.isFunction || function(obj) {
22452
+ function isFunction(obj) {
22443
22453
  return typeof obj === "function" && typeof obj.nodeType !== "number";
22444
- };
22454
+ }
22445
22455
 
22446
22456
  window = (typeof window != 'undefined' && window.Math == Math)
22447
22457
  ? window
@@ -22788,7 +22798,7 @@ $.fn.sidebar = function(parameters) {
22788
22798
  var
22789
22799
  $toggle = $(selector)
22790
22800
  ;
22791
- event = $.isFunction(module[event])
22801
+ event = isFunction(module[event])
22792
22802
  ? module[event]
22793
22803
  : module.toggle
22794
22804
  ;
@@ -22819,7 +22829,7 @@ $.fn.sidebar = function(parameters) {
22819
22829
  }
22820
22830
  },
22821
22831
  show: function(callback) {
22822
- callback = $.isFunction(callback)
22832
+ callback = isFunction(callback)
22823
22833
  ? callback
22824
22834
  : function(){}
22825
22835
  ;
@@ -22862,7 +22872,7 @@ $.fn.sidebar = function(parameters) {
22862
22872
  },
22863
22873
 
22864
22874
  hide: function(callback) {
22865
- callback = $.isFunction(callback)
22875
+ callback = isFunction(callback)
22866
22876
  ? callback
22867
22877
  : function(){}
22868
22878
  ;
@@ -22924,7 +22934,7 @@ $.fn.sidebar = function(parameters) {
22924
22934
  dim,
22925
22935
  transitionEnd
22926
22936
  ;
22927
- callback = $.isFunction(callback)
22937
+ callback = isFunction(callback)
22928
22938
  ? callback
22929
22939
  : function(){}
22930
22940
  ;
@@ -22970,7 +22980,7 @@ $.fn.sidebar = function(parameters) {
22970
22980
  animate,
22971
22981
  transitionEnd
22972
22982
  ;
22973
- callback = $.isFunction(callback)
22983
+ callback = isFunction(callback)
22974
22984
  ? callback
22975
22985
  : function(){}
22976
22986
  ;
@@ -23432,7 +23442,7 @@ $.fn.sidebar = function(parameters) {
23432
23442
  }
23433
23443
  });
23434
23444
  }
23435
- if ( $.isFunction( found ) ) {
23445
+ if ( isFunction( found ) ) {
23436
23446
  response = found.apply(context, passedArguments);
23437
23447
  }
23438
23448
  else if(found !== undefined) {
@@ -23560,7 +23570,7 @@ $.fn.sidebar.settings = {
23560
23570
  })( jQuery, window, document );
23561
23571
 
23562
23572
  /*!
23563
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Sticky
23573
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Sticky
23564
23574
  * https://github.com/fomantic/Fomantic-UI/
23565
23575
  *
23566
23576
  *
@@ -23573,9 +23583,9 @@ $.fn.sidebar.settings = {
23573
23583
 
23574
23584
  'use strict';
23575
23585
 
23576
- $.isFunction = $.isFunction || function(obj) {
23586
+ function isFunction(obj) {
23577
23587
  return typeof obj === "function" && typeof obj.nodeType !== "number";
23578
- };
23588
+ }
23579
23589
 
23580
23590
  window = (typeof window != 'undefined' && window.Math == Math)
23581
23591
  ? window
@@ -23587,6 +23597,7 @@ window = (typeof window != 'undefined' && window.Math == Math)
23587
23597
  $.fn.sticky = function(parameters) {
23588
23598
  var
23589
23599
  $allModules = $(this),
23600
+ $document = $(document),
23590
23601
  moduleSelector = $allModules.selector || '',
23591
23602
 
23592
23603
  time = new Date().getTime(),
@@ -23614,7 +23625,7 @@ $.fn.sticky = function(parameters) {
23614
23625
 
23615
23626
  $module = $(this),
23616
23627
  $window = $(window),
23617
- $scroll = [window,document].indexOf(settings.scrollContext) < 0 ? $(document).find(settings.scrollContext) : $(settings.scrollContext),
23628
+ $scroll = [window,document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
23618
23629
  $container,
23619
23630
  $context,
23620
23631
 
@@ -23700,7 +23711,7 @@ $.fn.sticky = function(parameters) {
23700
23711
 
23701
23712
  determineContainer: function() {
23702
23713
  if(settings.container) {
23703
- $container = [window,document].indexOf(settings.container) < 0 ? $(document).find(settings.container) : $(settings.container);
23714
+ $container = [window,document].indexOf(settings.container) < 0 ? $document.find(settings.container) : $(settings.container);
23704
23715
  }
23705
23716
  else {
23706
23717
  $container = $module.offsetParent();
@@ -23709,7 +23720,7 @@ $.fn.sticky = function(parameters) {
23709
23720
 
23710
23721
  determineContext: function() {
23711
23722
  if(settings.context) {
23712
- $context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context);
23723
+ $context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context);
23713
23724
  }
23714
23725
  else {
23715
23726
  $context = $container;
@@ -23991,13 +24002,13 @@ $.fn.sticky = function(parameters) {
23991
24002
  if( module.is.top() ) {
23992
24003
  $module
23993
24004
  .css('bottom', '')
23994
- .css('top', -scroll)
24005
+ .css('top', (-scroll) + 'px')
23995
24006
  ;
23996
24007
  }
23997
24008
  if( module.is.bottom() ) {
23998
24009
  $module
23999
24010
  .css('top', '')
24000
- .css('bottom', scroll)
24011
+ .css('bottom', scroll + 'px')
24001
24012
  ;
24002
24013
  }
24003
24014
  },
@@ -24416,7 +24427,7 @@ $.fn.sticky = function(parameters) {
24416
24427
  }
24417
24428
  });
24418
24429
  }
24419
- if ( $.isFunction( found ) ) {
24430
+ if ( isFunction( found ) ) {
24420
24431
  response = found.apply(context, passedArguments);
24421
24432
  }
24422
24433
  else if(found !== undefined) {
@@ -24529,7 +24540,7 @@ $.fn.sticky.settings = {
24529
24540
  })( jQuery, window, document );
24530
24541
 
24531
24542
  /*!
24532
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Tab
24543
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Tab
24533
24544
  * https://github.com/fomantic/Fomantic-UI/
24534
24545
  *
24535
24546
  *
@@ -24542,12 +24553,12 @@ $.fn.sticky.settings = {
24542
24553
 
24543
24554
  'use strict';
24544
24555
 
24545
- $.isWindow = $.isWindow || function(obj) {
24556
+ function isWindow(obj) {
24546
24557
  return obj != null && obj === obj.window;
24547
- };
24548
- $.isFunction = $.isFunction || function(obj) {
24558
+ }
24559
+ function isFunction(obj) {
24549
24560
  return typeof obj === "function" && typeof obj.nodeType !== "number";
24550
- };
24561
+ }
24551
24562
 
24552
24563
  window = (typeof window != 'undefined' && window.Math == Math)
24553
24564
  ? window
@@ -24560,10 +24571,10 @@ $.fn.tab = function(parameters) {
24560
24571
 
24561
24572
  var
24562
24573
  // use window context if none specified
24563
- $allModules = $.isFunction(this)
24574
+ $allModules = isFunction(this)
24564
24575
  ? $(window)
24565
24576
  : $(this),
24566
-
24577
+ $document = $(document),
24567
24578
  moduleSelector = $allModules.selector || '',
24568
24579
  time = new Date().getTime(),
24569
24580
  performance = [],
@@ -24665,7 +24676,7 @@ $.fn.tab = function(parameters) {
24665
24676
  bind: {
24666
24677
  events: function() {
24667
24678
  // if using $.tab don't add events
24668
- if( !$.isWindow( element ) ) {
24679
+ if( !isWindow( element ) ) {
24669
24680
  module.debug('Attaching tab activation events to element', $module);
24670
24681
  $module
24671
24682
  .on('click' + eventNamespace, module.event.click)
@@ -24692,7 +24703,7 @@ $.fn.tab = function(parameters) {
24692
24703
  module.verbose('Determined parent element for creating context', $context);
24693
24704
  }
24694
24705
  else if(settings.context) {
24695
- $context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context);
24706
+ $context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context);
24696
24707
  module.verbose('Using selector for tab context', settings.context, $context);
24697
24708
  }
24698
24709
  else {
@@ -24983,7 +24994,7 @@ $.fn.tab = function(parameters) {
24983
24994
  ;
24984
24995
  if(scrollOffset !== false) {
24985
24996
  module.debug('Forcing scroll to an in-page link in a hidden tab', scrollOffset, $element);
24986
- $(document).scrollTop(scrollOffset);
24997
+ $document.scrollTop(scrollOffset);
24987
24998
  }
24988
24999
  },
24989
25000
 
@@ -25427,7 +25438,7 @@ $.fn.tab = function(parameters) {
25427
25438
  }
25428
25439
  });
25429
25440
  }
25430
- if ( $.isFunction( found ) ) {
25441
+ if ( isFunction( found ) ) {
25431
25442
  response = found.apply(context, passedArguments);
25432
25443
  }
25433
25444
  else if(found !== undefined) {
@@ -25549,7 +25560,7 @@ $.fn.tab.settings = {
25549
25560
  })( jQuery, window, document );
25550
25561
 
25551
25562
  /*!
25552
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Toast
25563
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Toast
25553
25564
  * https://github.com/fomantic/Fomantic-UI/
25554
25565
  *
25555
25566
  *
@@ -25562,9 +25573,9 @@ $.fn.tab.settings = {
25562
25573
 
25563
25574
  'use strict';
25564
25575
 
25565
- $.isFunction = $.isFunction || function(obj) {
25576
+ function isFunction(obj) {
25566
25577
  return typeof obj === "function" && typeof obj.nodeType !== "number";
25567
- };
25578
+ }
25568
25579
 
25569
25580
  window = (typeof window != 'undefined' && window.Math == Math)
25570
25581
  ? window
@@ -25745,7 +25756,7 @@ $.toast = $.fn.toast = function(parameters) {
25745
25756
  .addClass(settings.class + ' ' + className.toast)
25746
25757
  .append($content)
25747
25758
  ;
25748
- $toast.css('opacity', settings.opacity);
25759
+ $toast.css('opacity', String(settings.opacity));
25749
25760
  if (settings.closeIcon) {
25750
25761
  $close = $('<i/>', {class: className.close + ' ' + (typeof settings.closeIcon === 'string' ? settings.closeIcon : ''), role: 'button', tabindex: 0, 'aria-label': settings.text.close});
25751
25762
  if($close.hasClass(className.left)) {
@@ -25793,17 +25804,19 @@ $.toast = $.fn.toast = function(parameters) {
25793
25804
  var icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
25794
25805
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
25795
25806
  cls = module.helpers.deQuote(el[fields.class] || ''),
25796
- click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {};
25807
+ click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {};
25797
25808
  $actions.append($('<button/>', {
25798
25809
  html: icon + text,
25799
25810
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
25800
25811
  class: className.button + ' ' + cls,
25801
- click: function () {
25802
- var button = $(this);
25803
- if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
25804
- return;
25812
+ on: {
25813
+ click: function () {
25814
+ var $button = $(this);
25815
+ if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(element, $module) === false) {
25816
+ return;
25817
+ }
25818
+ module.close();
25805
25819
  }
25806
- module.close();
25807
25820
  }
25808
25821
  }));
25809
25822
  });
@@ -25932,7 +25945,7 @@ $.toast = $.fn.toast = function(parameters) {
25932
25945
 
25933
25946
  animate: {
25934
25947
  show: function(callback) {
25935
- callback = $.isFunction(callback) ? callback : function(){};
25948
+ callback = isFunction(callback) ? callback : function(){};
25936
25949
  if(settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
25937
25950
  module.set.visible();
25938
25951
  $toastBox
@@ -25952,7 +25965,7 @@ $.toast = $.fn.toast = function(parameters) {
25952
25965
  }
25953
25966
  },
25954
25967
  close: function(callback) {
25955
- callback = $.isFunction(callback) ? callback : function(){};
25968
+ callback = isFunction(callback) ? callback : function(){};
25956
25969
  if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
25957
25970
  $toastBox
25958
25971
  .transition({
@@ -25965,10 +25978,10 @@ $.toast = $.fn.toast = function(parameters) {
25965
25978
  interval : 50,
25966
25979
 
25967
25980
  onBeforeHide: function(callback){
25968
- callback = $.isFunction(callback)?callback : function(){};
25981
+ callback = isFunction(callback)?callback : function(){};
25969
25982
  if(settings.transition.closeEasing !== ''){
25970
25983
  if($toastBox) {
25971
- $toastBox.css('opacity', 0);
25984
+ $toastBox.css('opacity', '0');
25972
25985
  $toastBox.wrap('<div/>').parent().hide(settings.transition.closeDuration, settings.transition.closeEasing, function () {
25973
25986
  if ($toastBox) {
25974
25987
  $toastBox.parent().remove();
@@ -26286,7 +26299,7 @@ $.toast = $.fn.toast = function(parameters) {
26286
26299
  }
26287
26300
  });
26288
26301
  }
26289
- if ( $.isFunction( found ) ) {
26302
+ if ( isFunction( found ) ) {
26290
26303
  response = found.apply(context, passedArguments);
26291
26304
  }
26292
26305
  else if(found !== undefined) {
@@ -26456,16 +26469,17 @@ $.fn.toast.settings = {
26456
26469
  };
26457
26470
 
26458
26471
  $.extend( $.easing, {
26459
- easeOutBounce: function (x, t, b, c, d) {
26460
- if ((t/=d) < (1/2.75)) {
26461
- return c*(7.5625*t*t) + b;
26462
- } else if (t < (2/2.75)) {
26463
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
26464
- } else if (t < (2.5/2.75)) {
26465
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
26466
- } else {
26467
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
26468
- }
26472
+ easeOutBounce: function (x) {
26473
+ var n1 = 7.5625, d1 = 2.75;
26474
+ if (x < 1 / d1) {
26475
+ return n1 * x * x;
26476
+ } else if (x < 2 / d1) {
26477
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
26478
+ } else if (x < 2.5 / d1) {
26479
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
26480
+ } else {
26481
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
26482
+ }
26469
26483
  },
26470
26484
  easeOutCubic: function (t) {
26471
26485
  return (--t)*t*t+1;
@@ -26476,7 +26490,7 @@ $.extend( $.easing, {
26476
26490
  })( jQuery, window, document );
26477
26491
 
26478
26492
  /*!
26479
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Transition
26493
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Transition
26480
26494
  * https://github.com/fomantic/Fomantic-UI/
26481
26495
  *
26482
26496
  *
@@ -26489,9 +26503,9 @@ $.extend( $.easing, {
26489
26503
 
26490
26504
  'use strict';
26491
26505
 
26492
- $.isFunction = $.isFunction || function(obj) {
26506
+ function isFunction(obj) {
26493
26507
  return typeof obj === "function" && typeof obj.nodeType !== "number";
26494
- };
26508
+ }
26495
26509
 
26496
26510
  window = (typeof window != 'undefined' && window.Math == Math)
26497
26511
  ? window
@@ -27469,7 +27483,7 @@ $.fn.transition = function() {
27469
27483
  }
27470
27484
  });
27471
27485
  }
27472
- if ( $.isFunction( found ) ) {
27486
+ if ( isFunction( found ) ) {
27473
27487
  response = found.apply(context, passedArguments);
27474
27488
  }
27475
27489
  else if(found !== undefined) {
@@ -27591,7 +27605,7 @@ $.fn.transition.settings = {
27591
27605
  })( jQuery, window, document );
27592
27606
 
27593
27607
  /*!
27594
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - API
27608
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - API
27595
27609
  * https://github.com/fomantic/Fomantic-UI/
27596
27610
  *
27597
27611
  *
@@ -27604,9 +27618,12 @@ $.fn.transition.settings = {
27604
27618
 
27605
27619
  'use strict';
27606
27620
 
27607
- $.isWindow = $.isWindow || function(obj) {
27608
- return obj != null && obj === obj.window;
27609
- };
27621
+ function isWindow(obj) {
27622
+ return obj != null && obj === obj.window;
27623
+ }
27624
+ function isFunction(obj) {
27625
+ return typeof obj === "function" && typeof obj.nodeType !== "number";
27626
+ }
27610
27627
 
27611
27628
  window = (typeof window != 'undefined' && window.Math == Math)
27612
27629
  ? window
@@ -27619,7 +27636,7 @@ $.api = $.fn.api = function(parameters) {
27619
27636
 
27620
27637
  var
27621
27638
  // use window context if none specified
27622
- $allModules = $.isFunction(this)
27639
+ $allModules = isFunction(this)
27623
27640
  ? $(window)
27624
27641
  : $(this),
27625
27642
  moduleSelector = $allModules.selector || '',
@@ -27908,7 +27925,7 @@ $.api = $.fn.api = function(parameters) {
27908
27925
  }
27909
27926
  },
27910
27927
  validResponse: function(response) {
27911
- if( (!module.is.expectingJSON()) || !$.isFunction(settings.successTest) ) {
27928
+ if( (!module.is.expectingJSON()) || !isFunction(settings.successTest) ) {
27912
27929
  module.verbose('Response is not JSON, skipping validation', settings.successTest, response);
27913
27930
  return true;
27914
27931
  }
@@ -28131,7 +28148,7 @@ $.api = $.fn.api = function(parameters) {
28131
28148
  context = this,
28132
28149
  elapsedTime = (new Date().getTime() - requestStartTime),
28133
28150
  timeLeft = (settings.loadingDuration - elapsedTime),
28134
- translatedResponse = ( $.isFunction(settings.onResponse) )
28151
+ translatedResponse = ( isFunction(settings.onResponse) )
28135
28152
  ? module.is.expectingJSON() && !settings.rawResponse
28136
28153
  ? settings.onResponse.call(context, $.extend(true, {}, response))
28137
28154
  : settings.onResponse.call(context, response)
@@ -28275,7 +28292,7 @@ $.api = $.fn.api = function(parameters) {
28275
28292
  ;
28276
28293
 
28277
28294
  if(responder) {
28278
- if( $.isFunction(responder) ) {
28295
+ if( isFunction(responder) ) {
28279
28296
  module.debug('Using specified synchronous callback', responder);
28280
28297
  response = responder.call(context, requestSettings);
28281
28298
  }
@@ -28286,7 +28303,7 @@ $.api = $.fn.api = function(parameters) {
28286
28303
  // simulating response
28287
28304
  mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]);
28288
28305
  }
28289
- else if( $.isFunction(asyncResponder) ) {
28306
+ else if( isFunction(asyncResponder) ) {
28290
28307
  asyncCallback = function(response) {
28291
28308
  module.debug('Async callback returned response', response);
28292
28309
 
@@ -28417,7 +28434,7 @@ $.api = $.fn.api = function(parameters) {
28417
28434
  var
28418
28435
  data = {}
28419
28436
  ;
28420
- if( !$.isWindow(element) ) {
28437
+ if( !isWindow(element) ) {
28421
28438
  if( module.is.input() ) {
28422
28439
  data.value = $module.val();
28423
28440
  }
@@ -28431,7 +28448,7 @@ $.api = $.fn.api = function(parameters) {
28431
28448
  return data;
28432
28449
  },
28433
28450
  event: function() {
28434
- if( $.isWindow(element) || settings.on == 'now' ) {
28451
+ if( isWindow(element) || settings.on == 'now' ) {
28435
28452
  module.debug('API called without element, no events attached');
28436
28453
  return false;
28437
28454
  }
@@ -28638,7 +28655,7 @@ $.api = $.fn.api = function(parameters) {
28638
28655
  }
28639
28656
  });
28640
28657
  }
28641
- if ( $.isFunction( found ) ) {
28658
+ if ( isFunction( found ) ) {
28642
28659
  response = found.apply(context, passedArguments);
28643
28660
  }
28644
28661
  else if(found !== undefined) {
@@ -28830,7 +28847,7 @@ $.api.settings = {
28830
28847
  })( jQuery, window, document );
28831
28848
 
28832
28849
  /*!
28833
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - State
28850
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - State
28834
28851
  * https://github.com/fomantic/Fomantic-UI/
28835
28852
  *
28836
28853
  *
@@ -28843,9 +28860,9 @@ $.api.settings = {
28843
28860
 
28844
28861
  "use strict";
28845
28862
 
28846
- $.isFunction = $.isFunction || function(obj) {
28863
+ function isFunction(obj) {
28847
28864
  return typeof obj === "function" && typeof obj.nodeType !== "number";
28848
- };
28865
+ }
28849
28866
 
28850
28867
  window = (typeof window != 'undefined' && window.Math == Math)
28851
28868
  ? window
@@ -29387,7 +29404,7 @@ $.fn.state = function(parameters) {
29387
29404
  }
29388
29405
  });
29389
29406
  }
29390
- if ( $.isFunction( found ) ) {
29407
+ if ( isFunction( found ) ) {
29391
29408
  response = found.apply(context, passedArguments);
29392
29409
  }
29393
29410
  else if(found !== undefined) {
@@ -29542,7 +29559,7 @@ $.fn.state.settings = {
29542
29559
  })( jQuery, window, document );
29543
29560
 
29544
29561
  /*!
29545
- * # Fomantic-UI 2.9.1-beta.15+02b01ff - Visibility
29562
+ * # Fomantic-UI 2.9.1-beta.17+3767ba8 - Visibility
29546
29563
  * https://github.com/fomantic/Fomantic-UI/
29547
29564
  *
29548
29565
  *
@@ -29555,9 +29572,9 @@ $.fn.state.settings = {
29555
29572
 
29556
29573
  'use strict';
29557
29574
 
29558
- $.isFunction = $.isFunction || function(obj) {
29575
+ function isFunction(obj) {
29559
29576
  return typeof obj === "function" && typeof obj.nodeType !== "number";
29560
- };
29577
+ }
29561
29578
 
29562
29579
  window = (typeof window != 'undefined' && window.Math == Math)
29563
29580
  ? window
@@ -29786,7 +29803,7 @@ $.fn.visibility = function(parameters) {
29786
29803
  handleLoad = function() {
29787
29804
  loadedCounter++;
29788
29805
  if (loadedCounter >= images.length) {
29789
- if ($.isFunction(callback)) {
29806
+ if (isFunction(callback)) {
29790
29807
  callback();
29791
29808
  }
29792
29809
  }
@@ -30711,7 +30728,7 @@ $.fn.visibility = function(parameters) {
30711
30728
  }
30712
30729
  });
30713
30730
  }
30714
- if ( $.isFunction( found ) ) {
30731
+ if ( isFunction( found ) ) {
30715
30732
  response = found.apply(context, passedArguments);
30716
30733
  }
30717
30734
  else if(found !== undefined) {