fomantic-ui 2.9.0-beta.312 → 2.9.0-beta.313

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 (173) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +2 -2
  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 +4 -4
  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 +3 -4
  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 +2 -2
  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 +3 -6
  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 +24 -50
  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 +3 -5
  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/form.css +1 -1
  46. package/dist/components/form.js +8 -13
  47. package/dist/components/form.min.css +1 -1
  48. package/dist/components/form.min.js +2 -2
  49. package/dist/components/grid.css +1 -1
  50. package/dist/components/grid.min.css +1 -1
  51. package/dist/components/header.css +1 -1
  52. package/dist/components/header.min.css +1 -1
  53. package/dist/components/icon.css +1 -1
  54. package/dist/components/icon.min.css +1 -1
  55. package/dist/components/image.css +1 -1
  56. package/dist/components/image.min.css +1 -1
  57. package/dist/components/input.css +1 -1
  58. package/dist/components/input.min.css +1 -1
  59. package/dist/components/item.css +1 -1
  60. package/dist/components/item.min.css +1 -1
  61. package/dist/components/label.css +1 -1
  62. package/dist/components/label.min.css +1 -1
  63. package/dist/components/list.css +1 -1
  64. package/dist/components/list.min.css +1 -1
  65. package/dist/components/loader.css +1 -1
  66. package/dist/components/loader.min.css +1 -1
  67. package/dist/components/message.css +1 -1
  68. package/dist/components/message.min.css +1 -1
  69. package/dist/components/modal.css +1 -1
  70. package/dist/components/modal.js +3 -4
  71. package/dist/components/modal.min.css +1 -1
  72. package/dist/components/modal.min.js +2 -2
  73. package/dist/components/nag.css +1 -1
  74. package/dist/components/nag.js +2 -2
  75. package/dist/components/nag.min.css +1 -1
  76. package/dist/components/nag.min.js +2 -2
  77. package/dist/components/placeholder.css +1 -1
  78. package/dist/components/placeholder.min.css +1 -1
  79. package/dist/components/popup.css +1 -1
  80. package/dist/components/popup.js +5 -13
  81. package/dist/components/popup.min.css +1 -1
  82. package/dist/components/popup.min.js +2 -2
  83. package/dist/components/progress.css +1 -1
  84. package/dist/components/progress.js +3 -3
  85. package/dist/components/progress.min.css +1 -1
  86. package/dist/components/progress.min.js +2 -2
  87. package/dist/components/rail.css +1 -1
  88. package/dist/components/rail.min.css +1 -1
  89. package/dist/components/rating.css +1 -1
  90. package/dist/components/rating.js +2 -2
  91. package/dist/components/rating.min.css +1 -1
  92. package/dist/components/rating.min.js +2 -2
  93. package/dist/components/reset.css +1 -1
  94. package/dist/components/reset.min.css +1 -1
  95. package/dist/components/reveal.css +1 -1
  96. package/dist/components/reveal.min.css +1 -1
  97. package/dist/components/search.css +1 -1
  98. package/dist/components/search.js +5 -8
  99. package/dist/components/search.min.css +1 -1
  100. package/dist/components/search.min.js +2 -2
  101. package/dist/components/segment.css +1 -1
  102. package/dist/components/segment.min.css +1 -1
  103. package/dist/components/shape.css +1 -1
  104. package/dist/components/shape.js +2 -2
  105. package/dist/components/shape.min.css +1 -1
  106. package/dist/components/shape.min.js +2 -2
  107. package/dist/components/sidebar.css +1 -1
  108. package/dist/components/sidebar.js +2 -2
  109. package/dist/components/sidebar.min.css +1 -1
  110. package/dist/components/sidebar.min.js +2 -2
  111. package/dist/components/site.css +1 -1
  112. package/dist/components/site.js +2 -2
  113. package/dist/components/site.min.css +1 -1
  114. package/dist/components/site.min.js +2 -2
  115. package/dist/components/slider.js +12 -14
  116. package/dist/components/slider.min.js +2 -2
  117. package/dist/components/state.js +2 -2
  118. package/dist/components/state.min.js +2 -2
  119. package/dist/components/statistic.css +1 -1
  120. package/dist/components/statistic.min.css +1 -1
  121. package/dist/components/step.css +1 -1
  122. package/dist/components/step.min.css +1 -1
  123. package/dist/components/sticky.css +1 -1
  124. package/dist/components/sticky.js +6 -13
  125. package/dist/components/sticky.min.css +1 -1
  126. package/dist/components/sticky.min.js +2 -2
  127. package/dist/components/tab.css +1 -1
  128. package/dist/components/tab.js +2 -2
  129. package/dist/components/tab.min.css +1 -1
  130. package/dist/components/tab.min.js +2 -2
  131. package/dist/components/table.css +1 -1
  132. package/dist/components/table.min.css +1 -1
  133. package/dist/components/text.css +1 -1
  134. package/dist/components/text.min.css +1 -1
  135. package/dist/components/toast.css +1 -1
  136. package/dist/components/toast.js +3 -3
  137. package/dist/components/toast.min.css +1 -1
  138. package/dist/components/toast.min.js +2 -2
  139. package/dist/components/transition.css +1 -1
  140. package/dist/components/transition.js +6 -8
  141. package/dist/components/transition.min.css +1 -1
  142. package/dist/components/transition.min.js +2 -2
  143. package/dist/components/visibility.js +2 -2
  144. package/dist/components/visibility.min.js +2 -2
  145. package/dist/semantic.css +49 -49
  146. package/dist/semantic.js +109 -169
  147. package/dist/semantic.min.css +1 -1
  148. package/dist/semantic.min.js +2 -2
  149. package/package.json +1 -1
  150. package/src/definitions/behaviors/api.js +3 -3
  151. package/src/definitions/behaviors/form.js +7 -12
  152. package/src/definitions/behaviors/state.js +1 -1
  153. package/src/definitions/behaviors/visibility.js +1 -1
  154. package/src/definitions/globals/site.js +1 -1
  155. package/src/definitions/modules/accordion.js +1 -1
  156. package/src/definitions/modules/calendar.js +2 -3
  157. package/src/definitions/modules/checkbox.js +1 -1
  158. package/src/definitions/modules/dimmer.js +2 -5
  159. package/src/definitions/modules/dropdown.js +23 -49
  160. package/src/definitions/modules/embed.js +2 -4
  161. package/src/definitions/modules/modal.js +2 -3
  162. package/src/definitions/modules/nag.js +1 -1
  163. package/src/definitions/modules/popup.js +4 -12
  164. package/src/definitions/modules/progress.js +2 -2
  165. package/src/definitions/modules/rating.js +1 -1
  166. package/src/definitions/modules/search.js +4 -7
  167. package/src/definitions/modules/shape.js +1 -1
  168. package/src/definitions/modules/sidebar.js +1 -1
  169. package/src/definitions/modules/slider.js +11 -13
  170. package/src/definitions/modules/sticky.js +5 -12
  171. package/src/definitions/modules/tab.js +1 -1
  172. package/src/definitions/modules/toast.js +2 -2
  173. package/src/definitions/modules/transition.js +5 -7
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.312+86121ef
2
+ * # Fomantic UI - 2.9.0-beta.313+6dec24a
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Site
12
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Site
13
13
  * http://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -369,7 +369,7 @@ $.site = $.fn.site = function(parameters) {
369
369
  response
370
370
  ;
371
371
  passedArguments = passedArguments || queryArguments;
372
- context = element || context;
372
+ context = context || element;
373
373
  if(typeof query == 'string' && object !== undefined) {
374
374
  query = query.split(/[\. ]/);
375
375
  maxDepth = query.length - 1;
@@ -503,7 +503,7 @@ $.extend($.expr[ ":" ], {
503
503
  })( jQuery, window, document );
504
504
 
505
505
  /*!
506
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -969,7 +969,7 @@ $.fn.form = function(parameters) {
969
969
  },
970
970
  beforeUnload: function(event) {
971
971
  if (module.is.dirty() && !submitting) {
972
- var event = event || window.event;
972
+ event = event || window.event;
973
973
 
974
974
  // For modern browsers
975
975
  if (event) {
@@ -1305,16 +1305,11 @@ $.fn.form = function(parameters) {
1305
1305
  if(typeof identifier !== 'string') {
1306
1306
  module.error(error.identifier, identifier);
1307
1307
  }
1308
- if($field.filter('#' + identifier).length > 0 ) {
1309
- return true;
1310
- }
1311
- else if( $field.filter('[name="' + identifier +'"]').length > 0 ) {
1312
- return true;
1313
- }
1314
- else if( $field.filter('[data-' + metadata.validate + '="'+ identifier +'"]').length > 0 ) {
1315
- return true;
1316
- }
1317
- return false;
1308
+ return (
1309
+ $field.filter('#' + identifier).length > 0 ||
1310
+ $field.filter('[name="' + identifier +'"]').length > 0 ||
1311
+ $field.filter('[data-' + metadata.validate + '="'+ identifier +'"]').length > 0
1312
+ );
1318
1313
  }
1319
1314
 
1320
1315
  },
@@ -1961,7 +1956,7 @@ $.fn.form = function(parameters) {
1961
1956
  response
1962
1957
  ;
1963
1958
  passedArguments = passedArguments || queryArguments;
1964
- context = element || context;
1959
+ context = context || element;
1965
1960
  if(typeof query == 'string' && object !== undefined) {
1966
1961
  query = query.split(/[\. ]/);
1967
1962
  maxDepth = query.length - 1;
@@ -2584,7 +2579,7 @@ $.fn.form.settings = {
2584
2579
  })( jQuery, window, document );
2585
2580
 
2586
2581
  /*!
2587
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Accordion
2582
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Accordion
2588
2583
  * http://github.com/fomantic/Fomantic-UI/
2589
2584
  *
2590
2585
  *
@@ -3081,7 +3076,7 @@ $.fn.accordion = function(parameters) {
3081
3076
  response
3082
3077
  ;
3083
3078
  passedArguments = passedArguments || queryArguments;
3084
- context = element || context;
3079
+ context = context || element;
3085
3080
  if(typeof query == 'string' && object !== undefined) {
3086
3081
  query = query.split(/[\. ]/);
3087
3082
  maxDepth = query.length - 1;
@@ -3209,7 +3204,7 @@ $.extend( $.easing, {
3209
3204
 
3210
3205
 
3211
3206
  /*!
3212
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Calendar
3207
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Calendar
3213
3208
  * http://github.com/fomantic/Fomantic-UI/
3214
3209
  *
3215
3210
  *
@@ -3809,9 +3804,9 @@ $.fn.calendar = function(parameters) {
3809
3804
  }
3810
3805
 
3811
3806
  if (module.popup('is visible')) {
3807
+ var mode = module.get.mode();
3812
3808
  if (keyCode === 37 || keyCode === 38 || keyCode === 39 || keyCode === 40) {
3813
3809
  //arrow keys
3814
- var mode = module.get.mode();
3815
3810
  var bigIncrement = mode === 'day' ? 7 : mode === 'hour' ? 4 : mode === 'minute' ? timeGap['column'] : 3;
3816
3811
  var increment = keyCode === 37 ? -1 : keyCode === 38 ? -bigIncrement : keyCode == 39 ? 1 : bigIncrement;
3817
3812
  increment *= mode === 'minute' ? settings.minTimeGap : 1;
@@ -3830,7 +3825,6 @@ $.fn.calendar = function(parameters) {
3830
3825
  }
3831
3826
  } else if (keyCode === 13) {
3832
3827
  //enter
3833
- var mode = module.get.mode();
3834
3828
  var date = module.get.focusDate();
3835
3829
  if (date && !settings.isDisabled(date, mode) && !module.helper.isDisabled(date, mode) && module.helper.isEnabled(date, mode)) {
3836
3830
  if (settings.onSelect.call(element, date, module.get.mode()) !== false) {
@@ -4623,7 +4617,7 @@ $.fn.calendar = function(parameters) {
4623
4617
  response
4624
4618
  ;
4625
4619
  passedArguments = passedArguments || queryArguments;
4626
- context = element || context;
4620
+ context = context || element;
4627
4621
  if (typeof query == 'string' && object !== undefined) {
4628
4622
  query = query.split(/[\. ]/);
4629
4623
  maxDepth = query.length - 1;
@@ -5101,7 +5095,7 @@ $.fn.calendar.settings = {
5101
5095
  })(jQuery, window, document);
5102
5096
 
5103
5097
  /*!
5104
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Checkbox
5098
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Checkbox
5105
5099
  * http://github.com/fomantic/Fomantic-UI/
5106
5100
  *
5107
5101
  *
@@ -5856,7 +5850,7 @@ $.fn.checkbox = function(parameters) {
5856
5850
  response
5857
5851
  ;
5858
5852
  passedArguments = passedArguments || queryArguments;
5859
- context = element || context;
5853
+ context = context || element;
5860
5854
  if(typeof query == 'string' && object !== undefined) {
5861
5855
  query = query.split(/[\. ]/);
5862
5856
  maxDepth = query.length - 1;
@@ -5985,7 +5979,7 @@ $.fn.checkbox.settings = {
5985
5979
  })( jQuery, window, document );
5986
5980
 
5987
5981
  /*!
5988
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Dimmer
5982
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Dimmer
5989
5983
  * http://github.com/fomantic/Fomantic-UI/
5990
5984
  *
5991
5985
  *
@@ -6366,10 +6360,7 @@ $.fn.dimmer = function(parameters) {
6366
6360
  },
6367
6361
  closable: function() {
6368
6362
  if(settings.closable == 'auto') {
6369
- if(settings.on == 'hover') {
6370
- return false;
6371
- }
6372
- return true;
6363
+ return settings.on != 'hover';
6373
6364
  }
6374
6365
  return settings.closable;
6375
6366
  },
@@ -6588,7 +6579,7 @@ $.fn.dimmer = function(parameters) {
6588
6579
  response
6589
6580
  ;
6590
6581
  passedArguments = passedArguments || queryArguments;
6591
- context = element || context;
6582
+ context = context || element;
6592
6583
  if(typeof query == 'string' && object !== undefined) {
6593
6584
  query = query.split(/[\. ]/);
6594
6585
  maxDepth = query.length - 1;
@@ -6754,7 +6745,7 @@ $.fn.dimmer.settings = {
6754
6745
  })( jQuery, window, document );
6755
6746
 
6756
6747
  /*!
6757
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Dropdown
6748
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Dropdown
6758
6749
  * http://github.com/fomantic/Fomantic-UI/
6759
6750
  *
6760
6751
  *
@@ -6983,7 +6974,6 @@ $.fn.dropdown = function(parameters) {
6983
6974
  var
6984
6975
  $userChoices,
6985
6976
  $userChoice,
6986
- isUserValue,
6987
6977
  html
6988
6978
  ;
6989
6979
  values = values || module.get.userValues();
@@ -7669,30 +7659,18 @@ $.fn.dropdown = function(parameters) {
7669
7659
  }
7670
7660
  if(settings.match === 'both' || settings.match === 'text') {
7671
7661
  text = module.remove.diacritics(String(module.get.choiceText($choice, false)));
7672
- if(text.search(beginsWithRegExp) !== -1) {
7673
- results.push(this);
7674
- return true;
7675
- }
7676
- else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) {
7677
- results.push(this);
7678
- return true;
7679
- }
7680
- else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text)) {
7662
+ if(text.search(beginsWithRegExp) !== -1 ||
7663
+ (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) ||
7664
+ (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text))) {
7681
7665
  results.push(this);
7682
7666
  return true;
7683
7667
  }
7684
7668
  }
7685
7669
  if(settings.match === 'both' || settings.match === 'value') {
7686
7670
  value = module.remove.diacritics(String(module.get.choiceValue($choice, text)));
7687
- if(value.search(beginsWithRegExp) !== -1) {
7688
- results.push(this);
7689
- return true;
7690
- }
7691
- else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, value)) {
7692
- results.push(this);
7693
- return true;
7694
- }
7695
- else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, value)) {
7671
+ if(value.search(beginsWithRegExp) !== -1 ||
7672
+ (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, value)) ||
7673
+ (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, value))) {
7696
7674
  results.push(this);
7697
7675
  return true;
7698
7676
  }
@@ -8193,8 +8171,7 @@ $.fn.dropdown = function(parameters) {
8193
8171
  isFocusedOnSearch = module.is.focusedOnSearch(),
8194
8172
  isFocused = module.is.focused(),
8195
8173
  caretAtStart = (isFocusedOnSearch && module.get.caretPosition(false) === 0),
8196
- isSelectedSearch = (caretAtStart && module.get.caretPosition(true) !== 0),
8197
- $nextLabel
8174
+ isSelectedSearch = (caretAtStart && module.get.caretPosition(true) !== 0)
8198
8175
  ;
8199
8176
  if(isSearch && !hasActiveLabel && !isFocusedOnSearch) {
8200
8177
  return;
@@ -8311,8 +8288,7 @@ $.fn.dropdown = function(parameters) {
8311
8288
  delimiterPressed = (event.key === settings.delimiter && module.is.multiple()),
8312
8289
  isAdditionWithoutMenu = (settings.allowAdditions && settings.hideAdditions && (pressedKey == keys.enter || delimiterPressed) && selectedIsSelectable),
8313
8290
  $nextItem,
8314
- isSubMenuItem,
8315
- newIndex
8291
+ isSubMenuItem
8316
8292
  ;
8317
8293
  // allow selection with menu closed
8318
8294
  if(isAdditionWithoutMenu) {
@@ -8416,7 +8392,7 @@ $.fn.dropdown = function(parameters) {
8416
8392
  // down arrow (traverse menu down)
8417
8393
  if(pressedKey == keys.downArrow) {
8418
8394
  $nextItem = (hasSelectedItem && inVisibleMenu)
8419
- ? $nextItem = $selectedItem.nextAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)
8395
+ ? $selectedItem.nextAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)
8420
8396
  : $item.eq(0)
8421
8397
  ;
8422
8398
  if($nextItem.length === 0) {
@@ -9171,7 +9147,6 @@ $.fn.dropdown = function(parameters) {
9171
9147
  currentScroll = $menu.scrollTop(),
9172
9148
  itemHeight = $item.eq(0).outerHeight(),
9173
9149
  itemsPerPage = Math.floor(menuHeight / itemHeight),
9174
- maxScroll = $menu.prop('scrollHeight'),
9175
9150
  newScroll = (direction == 'up')
9176
9151
  ? currentScroll - (itemHeight * itemsPerPage)
9177
9152
  : currentScroll + (itemHeight * itemsPerPage),
@@ -9296,7 +9271,6 @@ $.fn.dropdown = function(parameters) {
9296
9271
  $menu,
9297
9272
  hasActive,
9298
9273
  offset,
9299
- itemHeight,
9300
9274
  itemOffset,
9301
9275
  menuOffset,
9302
9276
  menuScroll,
@@ -9459,8 +9433,7 @@ $.fn.dropdown = function(parameters) {
9459
9433
  currentValue = module.get.values(),
9460
9434
  stringValue = (value !== undefined)
9461
9435
  ? String(value)
9462
- : value,
9463
- newValue
9436
+ : value
9464
9437
  ;
9465
9438
  if(hasInput) {
9466
9439
  if(!settings.allowReselection && stringValue == currentValue) {
@@ -9669,7 +9642,7 @@ $.fn.dropdown = function(parameters) {
9669
9642
  ;
9670
9643
  }
9671
9644
  else {
9672
- $message = $('<div/>')
9645
+ $('<div/>')
9673
9646
  .html(html)
9674
9647
  .addClass(className.message)
9675
9648
  .appendTo($menu)
@@ -9752,16 +9725,13 @@ $.fn.dropdown = function(parameters) {
9752
9725
  hasCount = (message.search('{count}') !== -1),
9753
9726
  hasMaxCount = (message.search('{maxCount}') !== -1),
9754
9727
  hasTerm = (message.search('{term}') !== -1),
9755
- count,
9756
9728
  query
9757
9729
  ;
9758
9730
  module.verbose('Adding templated variables to message', message);
9759
9731
  if(hasCount) {
9760
- count = module.get.selectionCount();
9761
- message = message.replace('{count}', count);
9732
+ message = message.replace('{count}', module.get.selectionCount());
9762
9733
  }
9763
9734
  if(hasMaxCount) {
9764
- count = module.get.selectionCount();
9765
9735
  message = message.replace('{maxCount}', settings.maxSelections);
9766
9736
  }
9767
9737
  if(hasTerm) {
@@ -10208,7 +10178,7 @@ $.fn.dropdown = function(parameters) {
10208
10178
  return (document.activeElement === $search[0]);
10209
10179
  },
10210
10180
  allFiltered: function() {
10211
- return( (module.is.multiple() || module.has.search()) && !(settings.hideAdditions == false && module.has.userSuggestion()) && !module.has.message() && module.has.allResultsFiltered() );
10181
+ return( (module.is.multiple() || module.has.search()) && !(!settings.hideAdditions && module.has.userSuggestion()) && !module.has.message() && module.has.allResultsFiltered() );
10212
10182
  },
10213
10183
  hidden: function($subMenu) {
10214
10184
  return !module.is.visible($subMenu);
@@ -10294,22 +10264,17 @@ $.fn.dropdown = function(parameters) {
10294
10264
 
10295
10265
  can: {
10296
10266
  activate: function($item) {
10297
- if(settings.useLabels) {
10298
- return true;
10299
- }
10300
- if(!module.has.maxSelections()) {
10301
- return true;
10302
- }
10303
- if(module.has.maxSelections() && $item.hasClass(className.active)) {
10304
- return true;
10305
- }
10306
- return false;
10267
+ return (
10268
+ settings.useLabels ||
10269
+ !module.has.maxSelections() ||
10270
+ (module.has.maxSelections() && $item.hasClass(className.active))
10271
+ );
10307
10272
  },
10308
10273
  openDownward: function($subMenu) {
10309
10274
  var
10310
10275
  $currentMenu = $subMenu || $menu,
10311
- canOpenDownward = true,
10312
- onScreen = {},
10276
+ canOpenDownward,
10277
+ onScreen,
10313
10278
  calculations
10314
10279
  ;
10315
10280
  $currentMenu
@@ -10569,7 +10534,7 @@ $.fn.dropdown = function(parameters) {
10569
10534
  }
10570
10535
  ;
10571
10536
  if(shouldEscape.test(string)) {
10572
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
10537
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
10573
10538
  return string.replace(badChars, escapedChar);
10574
10539
  }
10575
10540
  return string;
@@ -10691,7 +10656,7 @@ $.fn.dropdown = function(parameters) {
10691
10656
  response
10692
10657
  ;
10693
10658
  passedArguments = passedArguments || queryArguments;
10694
- context = element || context;
10659
+ context = context || element;
10695
10660
  if(typeof query == 'string' && object !== undefined) {
10696
10661
  query = query.split(/[\. ]/);
10697
10662
  maxDepth = query.length - 1;
@@ -11006,7 +10971,7 @@ $.fn.dropdown.settings.templates = {
11006
10971
  }
11007
10972
  ;
11008
10973
  if(shouldEscape.test(string)) {
11009
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
10974
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
11010
10975
  return string.replace(badChars, escapedChar);
11011
10976
  }
11012
10977
  return string;
@@ -11136,7 +11101,7 @@ $.fn.dropdown.settings.templates = {
11136
11101
  })( jQuery, window, document );
11137
11102
 
11138
11103
  /*!
11139
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Embed
11104
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Embed
11140
11105
  * http://github.com/fomantic/Fomantic-UI/
11141
11106
  *
11142
11107
  *
@@ -11265,9 +11230,7 @@ $.fn.embed = function(parameters) {
11265
11230
 
11266
11231
  createPlaceholder: function(placeholder) {
11267
11232
  var
11268
- icon = module.get.icon(),
11269
- url = module.get.url(),
11270
- embed = module.generate.embed(url)
11233
+ icon = module.get.icon()
11271
11234
  ;
11272
11235
  placeholder = placeholder || module.get.placeholder();
11273
11236
  $module.html( templates.placeholder(placeholder, icon) );
@@ -11646,7 +11609,7 @@ $.fn.embed = function(parameters) {
11646
11609
  response
11647
11610
  ;
11648
11611
  passedArguments = passedArguments || queryArguments;
11649
- context = element || context;
11612
+ context = context || element;
11650
11613
  if(typeof query == 'string' && object !== undefined) {
11651
11614
  query = query.split(/[\. ]/);
11652
11615
  maxDepth = query.length - 1;
@@ -11852,7 +11815,7 @@ $.fn.embed.settings = {
11852
11815
  })( jQuery, window, document );
11853
11816
 
11854
11817
  /*!
11855
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Modal
11818
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Modal
11856
11819
  * http://github.com/fomantic/Fomantic-UI/
11857
11820
  *
11858
11821
  *
@@ -12524,7 +12487,6 @@ $.modal = $.fn.modal = function(parameters) {
12524
12487
  }
12525
12488
  else {
12526
12489
  module.debug('Dimmer is not visible cannot hide');
12527
- return;
12528
12490
  }
12529
12491
  },
12530
12492
 
@@ -12716,7 +12678,7 @@ $.modal = $.fn.modal = function(parameters) {
12716
12678
  }
12717
12679
  ;
12718
12680
  if(shouldEscape.test(string)) {
12719
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
12681
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
12720
12682
  return string.replace(badChars, escapedChar);
12721
12683
  }
12722
12684
  return string;
@@ -13077,7 +13039,7 @@ $.modal = $.fn.modal = function(parameters) {
13077
13039
  response
13078
13040
  ;
13079
13041
  passedArguments = passedArguments || queryArguments;
13080
- context = element || context;
13042
+ context = context || element;
13081
13043
  if(typeof query == 'string' && object !== undefined) {
13082
13044
  query = query.split(/[\. ]/);
13083
13045
  maxDepth = query.length - 1;
@@ -13389,7 +13351,7 @@ $.fn.modal.settings.templates = {
13389
13351
  })( jQuery, window, document );
13390
13352
 
13391
13353
  /*!
13392
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Nag
13354
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Nag
13393
13355
  * http://github.com/fomantic/Fomantic-UI/
13394
13356
  *
13395
13357
  *
@@ -13793,7 +13755,7 @@ $.fn.nag = function(parameters) {
13793
13755
  response
13794
13756
  ;
13795
13757
  passedArguments = passedArguments || queryArguments;
13796
- context = element || context;
13758
+ context = context || element;
13797
13759
  if(typeof query == 'string' && object !== undefined) {
13798
13760
  query = query.split(/[\. ]/);
13799
13761
  maxDepth = query.length - 1;
@@ -13948,7 +13910,7 @@ $.extend( $.easing, {
13948
13910
  })( jQuery, window, document );
13949
13911
 
13950
13912
  /*!
13951
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Popup
13913
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Popup
13952
13914
  * http://github.com/fomantic/Fomantic-UI/
13953
13915
  *
13954
13916
  *
@@ -15036,10 +14998,7 @@ $.fn.popup = function(parameters) {
15036
14998
  is: {
15037
14999
  closable: function() {
15038
15000
  if(settings.closable == 'auto') {
15039
- if(settings.on == 'hover') {
15040
- return false;
15041
- }
15042
- return true;
15001
+ return settings.on != 'hover';
15043
15002
  }
15044
15003
  return settings.closable;
15045
15004
  },
@@ -15054,12 +15013,7 @@ $.fn.popup = function(parameters) {
15054
15013
  offstage.push(direction);
15055
15014
  }
15056
15015
  });
15057
- if(offstage.length > 0) {
15058
- return true;
15059
- }
15060
- else {
15061
- return false;
15062
- }
15016
+ return offstage.length > 0;
15063
15017
  },
15064
15018
  svg: function(element) {
15065
15019
  return module.supports.svg() && (element instanceof SVGGraphicsElement);
@@ -15213,7 +15167,7 @@ $.fn.popup = function(parameters) {
15213
15167
  response
15214
15168
  ;
15215
15169
  passedArguments = passedArguments || queryArguments;
15216
- context = element || context;
15170
+ context = context || element;
15217
15171
  if(typeof query == 'string' && object !== undefined) {
15218
15172
  query = query.split(/[\. ]/);
15219
15173
  maxDepth = query.length - 1;
@@ -15462,7 +15416,7 @@ $.fn.popup.settings = {
15462
15416
  }
15463
15417
  ;
15464
15418
  if(shouldEscape.test(string)) {
15465
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
15419
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
15466
15420
  return string.replace(badChars, escapedChar);
15467
15421
  }
15468
15422
  return string;
@@ -15492,7 +15446,7 @@ $.fn.popup.settings = {
15492
15446
  })( jQuery, window, document );
15493
15447
 
15494
15448
  /*!
15495
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Progress
15449
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Progress
15496
15450
  * http://github.com/fomantic/Fomantic-UI/
15497
15451
  *
15498
15452
  *
@@ -16370,7 +16324,7 @@ $.fn.progress = function(parameters) {
16370
16324
  response
16371
16325
  ;
16372
16326
  passedArguments = passedArguments || queryArguments;
16373
- context = element || context;
16327
+ context = context || element;
16374
16328
  if(typeof query == 'string' && object !== undefined) {
16375
16329
  query = query.split(/[\. ]/);
16376
16330
  maxDepth = query.length - 1;
@@ -16491,7 +16445,7 @@ $.fn.progress.settings = {
16491
16445
  },
16492
16446
 
16493
16447
  regExp: {
16494
- variable: /\{\$*[A-z0-9]+\}/g
16448
+ variable: /\{\$*[a-z0-9]+\}/gi
16495
16449
  },
16496
16450
 
16497
16451
  metadata: {
@@ -16529,7 +16483,7 @@ $.fn.progress.settings = {
16529
16483
  })( jQuery, window, document );
16530
16484
 
16531
16485
  /*!
16532
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Slider
16486
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Slider
16533
16487
  * http://github.com/fomantic/Fomantic-UI/
16534
16488
  *
16535
16489
  *
@@ -16984,8 +16938,8 @@ $.fn.slider = function(parameters) {
16984
16938
  module.setup.labels();
16985
16939
  },
16986
16940
  takeStep: function(multiplier) {
16941
+ multiplier = multiplier != undefined ? multiplier : 1;
16987
16942
  var
16988
- multiplier = multiplier != undefined ? multiplier : 1,
16989
16943
  step = module.get.step(),
16990
16944
  currValue = module.get.currentThumbValue()
16991
16945
  ;
@@ -17002,8 +16956,8 @@ $.fn.slider = function(parameters) {
17002
16956
  },
17003
16957
 
17004
16958
  backStep: function(multiplier) {
16959
+ multiplier = multiplier != undefined ? multiplier : 1;
17005
16960
  var
17006
- multiplier = multiplier != undefined ? multiplier : 1,
17007
16961
  step = module.get.step(),
17008
16962
  currValue = module.get.currentThumbValue()
17009
16963
  ;
@@ -17251,11 +17205,11 @@ $.fn.slider = function(parameters) {
17251
17205
  ;
17252
17206
  return pos;
17253
17207
  },
17254
- positionFromValue: function(value) {
17208
+ positionFromValue: function(val) {
17255
17209
  var
17256
17210
  min = module.get.min(),
17257
17211
  max = module.get.max(),
17258
- value = value > max ? max : value < min ? min : value,
17212
+ value = val > max ? max : val < min ? min : val,
17259
17213
  trackLength = module.get.trackLength(),
17260
17214
  ratio = (value - min) / (max - min),
17261
17215
  position = Math.round(ratio * trackLength)
@@ -17463,14 +17417,12 @@ $.fn.slider = function(parameters) {
17463
17417
  },
17464
17418
  position: function(position, which) {
17465
17419
  var thumbVal = module.determine.value(position);
17466
- switch (which) {
17467
- case 'second':
17468
- module.secondThumbVal = thumbVal;
17469
- module.update.position(thumbVal, $secondThumb);
17470
- break;
17471
- default:
17472
- module.thumbVal = thumbVal;
17473
- module.update.position(thumbVal, $thumb);
17420
+ if (which === 'second') {
17421
+ module.secondThumbVal = thumbVal;
17422
+ module.update.position(thumbVal, $secondThumb);
17423
+ } else {
17424
+ module.thumbVal = thumbVal;
17425
+ module.update.position(thumbVal, $thumb);
17474
17426
  }
17475
17427
  value = Math.abs(module.thumbVal - (module.secondThumbVal || 0));
17476
17428
  module.set.value(value);
@@ -17739,7 +17691,7 @@ $.fn.slider = function(parameters) {
17739
17691
  response
17740
17692
  ;
17741
17693
  passedArguments = passedArguments || queryArguments;
17742
- context = element || context;
17694
+ context = context || element;
17743
17695
  if(typeof query == 'string' && object !== undefined) {
17744
17696
  query = query.split(/[\. ]/);
17745
17697
  maxDepth = query.length - 1;
@@ -17885,7 +17837,7 @@ $.fn.slider.settings = {
17885
17837
  })( jQuery, window, document );
17886
17838
 
17887
17839
  /*!
17888
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Rating
17840
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Rating
17889
17841
  * http://github.com/fomantic/Fomantic-UI/
17890
17842
  *
17891
17843
  *
@@ -18305,7 +18257,7 @@ $.fn.rating = function(parameters) {
18305
18257
  response
18306
18258
  ;
18307
18259
  passedArguments = passedArguments || queryArguments;
18308
- context = element || context;
18260
+ context = context || element;
18309
18261
  if(typeof query == 'string' && object !== undefined) {
18310
18262
  query = query.split(/[\. ]/);
18311
18263
  maxDepth = query.length - 1;
@@ -18444,7 +18396,7 @@ $.fn.rating.settings = {
18444
18396
  })( jQuery, window, document );
18445
18397
 
18446
18398
  /*!
18447
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Search
18399
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Search
18448
18400
  * http://github.com/fomantic/Fomantic-UI/
18449
18401
  *
18450
18402
  *
@@ -18921,10 +18873,7 @@ $.fn.search = function(parameters) {
18921
18873
  return $prompt.val();
18922
18874
  },
18923
18875
  results: function() {
18924
- var
18925
- results = $module.data(metadata.results)
18926
- ;
18927
- return results;
18876
+ return $module.data(metadata.results);
18928
18877
  },
18929
18878
  result: function(value, results) {
18930
18879
  var
@@ -19141,7 +19090,7 @@ $.fn.search = function(parameters) {
19141
19090
  // content fuzzy matches (last in results)
19142
19091
  addResult(exactResults, content);
19143
19092
  }
19144
- else if(settings.fullTextSearch == true && module.fuzzySearch(searchTerm, text) ) {
19093
+ else if(settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text) ) {
19145
19094
  // content fuzzy matches (last in results)
19146
19095
  addResult(fuzzyResults, content);
19147
19096
  }
@@ -19651,7 +19600,7 @@ $.fn.search = function(parameters) {
19651
19600
  response
19652
19601
  ;
19653
19602
  passedArguments = passedArguments || queryArguments;
19654
- context = element || context;
19603
+ context = context || element;
19655
19604
  if(typeof query == 'string' && object !== undefined) {
19656
19605
  query = query.split(/[\. ]/);
19657
19606
  maxDepth = query.length - 1;
@@ -19882,7 +19831,7 @@ $.fn.search.settings = {
19882
19831
  }
19883
19832
  ;
19884
19833
  if(shouldEscape.test(string)) {
19885
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
19834
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
19886
19835
  return string.replace(badChars, escapedChar);
19887
19836
  }
19888
19837
  return string;
@@ -20042,7 +19991,7 @@ $.extend($.easing, {
20042
19991
  })( jQuery, window, document );
20043
19992
 
20044
19993
  /*!
20045
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Shape
19994
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Shape
20046
19995
  * http://github.com/fomantic/Fomantic-UI/
20047
19996
  *
20048
19997
  *
@@ -20750,7 +20699,7 @@ $.fn.shape = function(parameters) {
20750
20699
  response
20751
20700
  ;
20752
20701
  passedArguments = passedArguments || queryArguments;
20753
- context = element || context;
20702
+ context = context || element;
20754
20703
  if(typeof query == 'string' && object !== undefined) {
20755
20704
  query = query.split(/[\. ]/);
20756
20705
  maxDepth = query.length - 1;
@@ -20891,7 +20840,7 @@ $.fn.shape.settings = {
20891
20840
  })( jQuery, window, document );
20892
20841
 
20893
20842
  /*!
20894
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Sidebar
20843
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Sidebar
20895
20844
  * http://github.com/fomantic/Fomantic-UI/
20896
20845
  *
20897
20846
  *
@@ -21850,7 +21799,7 @@ $.fn.sidebar = function(parameters) {
21850
21799
  response
21851
21800
  ;
21852
21801
  passedArguments = passedArguments || queryArguments;
21853
- context = element || context;
21802
+ context = context || element;
21854
21803
  if(typeof query == 'string' && object !== undefined) {
21855
21804
  query = query.split(/[\. ]/);
21856
21805
  maxDepth = query.length - 1;
@@ -22007,7 +21956,7 @@ $.fn.sidebar.settings = {
22007
21956
  })( jQuery, window, document );
22008
21957
 
22009
21958
  /*!
22010
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Sticky
21959
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Sticky
22011
21960
  * http://github.com/fomantic/Fomantic-UI/
22012
21961
  *
22013
21962
  *
@@ -22163,7 +22112,6 @@ $.fn.sticky = function(parameters) {
22163
22112
  }
22164
22113
  if($context.length === 0) {
22165
22114
  module.error(error.invalidContext, settings.context, $module);
22166
- return;
22167
22115
  }
22168
22116
  },
22169
22117
 
@@ -22174,7 +22122,6 @@ $.fn.sticky = function(parameters) {
22174
22122
  if(module.cache.element.height > module.cache.context.height) {
22175
22123
  module.reset();
22176
22124
  module.error(error.elementSize, $module);
22177
- return;
22178
22125
  }
22179
22126
  },
22180
22127
 
@@ -22325,13 +22272,8 @@ $.fn.sticky = function(parameters) {
22325
22272
  direction = 'down'
22326
22273
  ;
22327
22274
  scroll = scroll || $scroll.scrollTop();
22328
- if(module.lastScroll !== undefined) {
22329
- if(module.lastScroll < scroll) {
22330
- direction = 'down';
22331
- }
22332
- else if(module.lastScroll > scroll) {
22275
+ if(module.lastScroll && module.lastScroll > scroll) {
22333
22276
  direction = 'up';
22334
- }
22335
22277
  }
22336
22278
  return direction;
22337
22279
  },
@@ -22379,7 +22321,7 @@ $.fn.sticky = function(parameters) {
22379
22321
  lastScroll: function() {
22380
22322
  delete module.lastScroll;
22381
22323
  },
22382
- elementScroll: function(scroll) {
22324
+ elementScroll: function() {
22383
22325
  delete module.elementScroll;
22384
22326
  },
22385
22327
  minimumSize: function() {
@@ -22475,9 +22417,9 @@ $.fn.sticky = function(parameters) {
22475
22417
  }
22476
22418
  },
22477
22419
 
22478
- stick: function(scroll) {
22420
+ stick: function(scrollPosition) {
22479
22421
  var
22480
- cachedPosition = scroll || $scroll.scrollTop(),
22422
+ cachedPosition = scrollPosition || $scroll.scrollTop(),
22481
22423
  cache = module.cache,
22482
22424
  fits = cache.fits,
22483
22425
  sameHeight = cache.sameHeight,
@@ -22824,7 +22766,7 @@ $.fn.sticky = function(parameters) {
22824
22766
  response
22825
22767
  ;
22826
22768
  passedArguments = passedArguments || queryArguments;
22827
- context = element || context;
22769
+ context = context || element;
22828
22770
  if(typeof query == 'string' && object !== undefined) {
22829
22771
  query = query.split(/[\. ]/);
22830
22772
  maxDepth = query.length - 1;
@@ -22965,7 +22907,7 @@ $.fn.sticky.settings = {
22965
22907
  })( jQuery, window, document );
22966
22908
 
22967
22909
  /*!
22968
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Tab
22910
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Tab
22969
22911
  * http://github.com/fomantic/Fomantic-UI/
22970
22912
  *
22971
22913
  *
@@ -23834,7 +23776,7 @@ $.fn.tab = function(parameters) {
23834
23776
  response
23835
23777
  ;
23836
23778
  passedArguments = passedArguments || queryArguments;
23837
- context = element || context;
23779
+ context = context || element;
23838
23780
  if(typeof query == 'string' && object !== undefined) {
23839
23781
  query = query.split(/[\. ]/);
23840
23782
  maxDepth = query.length - 1;
@@ -23985,7 +23927,7 @@ $.fn.tab.settings = {
23985
23927
  })( jQuery, window, document );
23986
23928
 
23987
23929
  /*!
23988
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Toast
23930
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Toast
23989
23931
  * http://github.com/fomantic/Fomantic-UI/
23990
23932
  *
23991
23933
  *
@@ -24561,7 +24503,7 @@ $.toast = $.fn.toast = function(parameters) {
24561
24503
  }
24562
24504
  ;
24563
24505
  if(shouldEscape.test(string)) {
24564
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
24506
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
24565
24507
  return string.replace(badChars, escapedChar);
24566
24508
  }
24567
24509
  return string;
@@ -24693,7 +24635,7 @@ $.toast = $.fn.toast = function(parameters) {
24693
24635
  response
24694
24636
  ;
24695
24637
  passedArguments = passedArguments || queryArguments;
24696
- context = element || context;
24638
+ context = context || element;
24697
24639
  if(typeof query == 'string' && object !== undefined) {
24698
24640
  query = query.split(/[\. ]/);
24699
24641
  maxDepth = query.length - 1;
@@ -24912,7 +24854,7 @@ $.extend( $.easing, {
24912
24854
  })( jQuery, window, document );
24913
24855
 
24914
24856
  /*!
24915
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Transition
24857
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Transition
24916
24858
  * http://github.com/fomantic/Fomantic-UI/
24917
24859
  *
24918
24860
  *
@@ -24999,7 +24941,7 @@ $.fn.transition = function() {
24999
24941
  if(methodInvoked === false) {
25000
24942
  module.verbose('Converted arguments into settings object', settings);
25001
24943
  if(settings.interval) {
25002
- module.delay(settings.animate);
24944
+ module.delay(settings.interval);
25003
24945
  }
25004
24946
  else {
25005
24947
  module.animate();
@@ -25066,9 +25008,9 @@ $.fn.transition = function() {
25066
25008
  : settings.interval
25067
25009
  ;
25068
25010
  shouldReverse = (settings.reverse == 'auto' && direction == className.outward);
25069
- delay = (shouldReverse || settings.reverse == true)
25070
- ? ($allModules.length - index) * settings.interval
25071
- : index * settings.interval
25011
+ delay = (shouldReverse || settings.reverse === true)
25012
+ ? ($allModules.length - index) * interval
25013
+ : index * interval
25072
25014
  ;
25073
25015
  module.debug('Delaying animation by', delay);
25074
25016
  setTimeout(module.animate, delay);
@@ -25705,7 +25647,6 @@ $.fn.transition = function() {
25705
25647
  module.force.hidden();
25706
25648
  settings.onHidden.call(element);
25707
25649
  settings.onComplete.call(element);
25708
- // module.repaint();
25709
25650
  },
25710
25651
 
25711
25652
  show: function(display) {
@@ -25720,7 +25661,6 @@ $.fn.transition = function() {
25720
25661
  module.set.visible();
25721
25662
  settings.onVisible.call(element);
25722
25663
  settings.onComplete.call(element);
25723
- // module.repaint();
25724
25664
  },
25725
25665
 
25726
25666
  toggle: function() {
@@ -25879,7 +25819,7 @@ $.fn.transition = function() {
25879
25819
  response
25880
25820
  ;
25881
25821
  passedArguments = passedArguments || queryArguments;
25882
- context = element || context;
25822
+ context = context || element;
25883
25823
  if(typeof query == 'string' && object !== undefined) {
25884
25824
  query = query.split(/[\. ]/);
25885
25825
  maxDepth = query.length - 1;
@@ -26029,7 +25969,7 @@ $.fn.transition.settings = {
26029
25969
  })( jQuery, window, document );
26030
25970
 
26031
25971
  /*!
26032
- * # Fomantic-UI 2.9.0-beta.312+86121ef - API
25972
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - API
26033
25973
  * http://github.com/fomantic/Fomantic-UI/
26034
25974
  *
26035
25975
  *
@@ -27045,7 +26985,7 @@ $.api = $.fn.api = function(parameters) {
27045
26985
  response
27046
26986
  ;
27047
26987
  passedArguments = passedArguments || queryArguments;
27048
- context = element || context;
26988
+ context = context || element;
27049
26989
  if(typeof query == 'string' && object !== undefined) {
27050
26990
  query = query.split(/[\. ]/);
27051
26991
  maxDepth = query.length - 1;
@@ -27236,8 +27176,8 @@ $.api.settings = {
27236
27176
  },
27237
27177
 
27238
27178
  regExp : {
27239
- required : /\{\$*[A-z0-9]+\}/g,
27240
- optional : /\{\/\$*[A-z0-9]+\}/g,
27179
+ required : /\{\$*[a-z0-9]+\}/gi,
27180
+ optional : /\{\/\$*[a-z0-9]+\}/gi,
27241
27181
  validate: /^[a-z_][a-z0-9_-]*(?:\[[a-z0-9_-]*\])*$/i,
27242
27182
  key: /[a-z0-9_-]+|(?=\[\])/gi,
27243
27183
  push: /^$/,
@@ -27266,7 +27206,7 @@ $.api.settings = {
27266
27206
  })( jQuery, window, document );
27267
27207
 
27268
27208
  /*!
27269
- * # Fomantic-UI 2.9.0-beta.312+86121ef - State
27209
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - State
27270
27210
  * http://github.com/fomantic/Fomantic-UI/
27271
27211
  *
27272
27212
  *
@@ -27794,7 +27734,7 @@ $.fn.state = function(parameters) {
27794
27734
  response
27795
27735
  ;
27796
27736
  passedArguments = passedArguments || queryArguments;
27797
- context = element || context;
27737
+ context = context || element;
27798
27738
  if(typeof query == 'string' && object !== undefined) {
27799
27739
  query = query.split(/[\. ]/);
27800
27740
  maxDepth = query.length - 1;
@@ -27978,7 +27918,7 @@ $.fn.state.settings = {
27978
27918
  })( jQuery, window, document );
27979
27919
 
27980
27920
  /*!
27981
- * # Fomantic-UI 2.9.0-beta.312+86121ef - Visibility
27921
+ * # Fomantic-UI 2.9.0-beta.313+6dec24a - Visibility
27982
27922
  * http://github.com/fomantic/Fomantic-UI/
27983
27923
  *
27984
27924
  *
@@ -29118,7 +29058,7 @@ $.fn.visibility = function(parameters) {
29118
29058
  response
29119
29059
  ;
29120
29060
  passedArguments = passedArguments || queryArguments;
29121
- context = element || context;
29061
+ context = context || element;
29122
29062
  if(typeof query == 'string' && object !== undefined) {
29123
29063
  query = query.split(/[\. ]/);
29124
29064
  maxDepth = query.length - 1;