fomantic-ui 2.9.1-beta.23 → 2.9.1-beta.24

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 (214) hide show
  1. package/.eslint/index.js +23 -0
  2. package/.eslint/no-extra-parens-rule.js +17 -0
  3. package/.eslint/package.json +11 -0
  4. package/.eslintrc.js +6 -11
  5. package/dist/components/accordion.css +1 -1
  6. package/dist/components/accordion.js +22 -22
  7. package/dist/components/accordion.min.css +1 -1
  8. package/dist/components/accordion.min.js +1 -1
  9. package/dist/components/ad.css +1 -1
  10. package/dist/components/ad.min.css +1 -1
  11. package/dist/components/api.js +47 -47
  12. package/dist/components/api.min.js +1 -1
  13. package/dist/components/breadcrumb.css +1 -1
  14. package/dist/components/breadcrumb.min.css +1 -1
  15. package/dist/components/button.css +1 -1
  16. package/dist/components/button.min.css +1 -1
  17. package/dist/components/calendar.css +1 -1
  18. package/dist/components/calendar.js +69 -58
  19. package/dist/components/calendar.min.css +1 -1
  20. package/dist/components/calendar.min.js +2 -2
  21. package/dist/components/card.css +1 -1
  22. package/dist/components/card.min.css +1 -1
  23. package/dist/components/checkbox.css +1 -1
  24. package/dist/components/checkbox.js +9 -9
  25. package/dist/components/checkbox.min.css +1 -1
  26. package/dist/components/checkbox.min.js +1 -1
  27. package/dist/components/comment.css +1 -1
  28. package/dist/components/comment.min.css +1 -1
  29. package/dist/components/container.css +1 -1
  30. package/dist/components/container.min.css +1 -1
  31. package/dist/components/dimmer.css +1 -1
  32. package/dist/components/dimmer.js +11 -11
  33. package/dist/components/dimmer.min.css +1 -1
  34. package/dist/components/dimmer.min.js +1 -1
  35. package/dist/components/divider.css +1 -1
  36. package/dist/components/divider.min.css +1 -1
  37. package/dist/components/dropdown.css +1 -1
  38. package/dist/components/dropdown.js +171 -173
  39. package/dist/components/dropdown.min.css +1 -1
  40. package/dist/components/dropdown.min.js +1 -1
  41. package/dist/components/embed.css +1 -1
  42. package/dist/components/embed.js +16 -16
  43. package/dist/components/embed.min.css +1 -1
  44. package/dist/components/embed.min.js +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +21 -17
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +1 -1
  53. package/dist/components/form.css +1 -1
  54. package/dist/components/form.js +87 -87
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +1 -1
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +1 -1
  62. package/dist/components/icon.min.css +1 -1
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -1
  66. package/dist/components/input.min.css +1 -1
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +30 -26
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +7 -7
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +45 -45
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +30 -32
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +10 -10
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +31 -31
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +34 -34
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +21 -21
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +14 -14
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.js +33 -25
  124. package/dist/components/slider.min.js +1 -1
  125. package/dist/components/state.js +11 -11
  126. package/dist/components/state.min.js +1 -1
  127. package/dist/components/statistic.css +1 -1
  128. package/dist/components/statistic.min.css +1 -1
  129. package/dist/components/step.css +1 -1
  130. package/dist/components/step.min.css +1 -1
  131. package/dist/components/sticky.css +1 -1
  132. package/dist/components/sticky.js +21 -21
  133. package/dist/components/sticky.min.css +1 -1
  134. package/dist/components/sticky.min.js +1 -1
  135. package/dist/components/tab.css +1 -1
  136. package/dist/components/tab.js +23 -23
  137. package/dist/components/tab.min.css +1 -1
  138. package/dist/components/tab.min.js +1 -1
  139. package/dist/components/table.css +1 -1
  140. package/dist/components/table.min.css +1 -1
  141. package/dist/components/text.css +1 -1
  142. package/dist/components/text.min.css +1 -1
  143. package/dist/components/toast.css +1 -1
  144. package/dist/components/toast.js +41 -17
  145. package/dist/components/toast.min.css +1 -1
  146. package/dist/components/toast.min.js +1 -1
  147. package/dist/components/transition.css +1 -1
  148. package/dist/components/transition.js +21 -21
  149. package/dist/components/transition.min.css +1 -1
  150. package/dist/components/transition.min.js +1 -1
  151. package/dist/components/visibility.js +21 -21
  152. package/dist/components/visibility.min.js +1 -1
  153. package/dist/semantic.css +50 -50
  154. package/dist/semantic.js +847 -800
  155. package/dist/semantic.min.css +1 -1
  156. package/dist/semantic.min.js +2 -2
  157. package/gulpfile.js +1 -1
  158. package/package.json +2 -1
  159. package/scripts/nightly-version.js +3 -1
  160. package/src/definitions/behaviors/api.js +46 -46
  161. package/src/definitions/behaviors/form.js +86 -86
  162. package/src/definitions/behaviors/state.js +10 -10
  163. package/src/definitions/behaviors/visibility.js +20 -20
  164. package/src/definitions/globals/site.js +13 -13
  165. package/src/definitions/modules/accordion.js +21 -21
  166. package/src/definitions/modules/calendar.js +68 -57
  167. package/src/definitions/modules/checkbox.js +8 -8
  168. package/src/definitions/modules/dimmer.js +10 -10
  169. package/src/definitions/modules/dropdown.js +170 -172
  170. package/src/definitions/modules/embed.js +15 -15
  171. package/src/definitions/modules/flyout.js +20 -16
  172. package/src/definitions/modules/modal.js +29 -25
  173. package/src/definitions/modules/nag.js +6 -6
  174. package/src/definitions/modules/popup.js +44 -44
  175. package/src/definitions/modules/progress.js +29 -31
  176. package/src/definitions/modules/rating.js +9 -9
  177. package/src/definitions/modules/search.js +30 -30
  178. package/src/definitions/modules/shape.js +33 -33
  179. package/src/definitions/modules/sidebar.js +20 -20
  180. package/src/definitions/modules/slider.js +32 -24
  181. package/src/definitions/modules/sticky.js +20 -20
  182. package/src/definitions/modules/tab.js +22 -22
  183. package/src/definitions/modules/toast.js +40 -16
  184. package/src/definitions/modules/transition.js +20 -20
  185. package/tasks/admin/components/create.js +1 -1
  186. package/tasks/admin/components/init.js +1 -1
  187. package/tasks/admin/components/update.js +4 -4
  188. package/tasks/admin/distributions/create.js +2 -2
  189. package/tasks/admin/distributions/init.js +1 -1
  190. package/tasks/admin/distributions/update.js +4 -4
  191. package/tasks/admin/publish.js +1 -3
  192. package/tasks/admin/register.js +5 -5
  193. package/tasks/admin/release.js +1 -3
  194. package/tasks/build/assets.js +1 -1
  195. package/tasks/build.js +1 -1
  196. package/tasks/check-install.js +1 -1
  197. package/tasks/clean.js +1 -1
  198. package/tasks/collections/admin.js +1 -1
  199. package/tasks/collections/rtl.js +1 -1
  200. package/tasks/config/admin/github.js +3 -4
  201. package/tasks/config/npm/gulpfile.js +1 -1
  202. package/tasks/config/project/config.js +8 -6
  203. package/tasks/config/project/install.js +10 -10
  204. package/tasks/config/project/release.js +3 -2
  205. package/tasks/config/tasks.js +2 -2
  206. package/tasks/config/user.js +5 -3
  207. package/tasks/docs/build.js +1 -1
  208. package/tasks/docs/metadata.js +1 -1
  209. package/tasks/docs/serve.js +2 -1
  210. package/tasks/install.js +2 -2
  211. package/tasks/rtl/build.js +1 -3
  212. package/tasks/rtl/watch.js +1 -3
  213. package/tasks/version.js +1 -3
  214. package/tasks/watch.js +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Toast
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -28,13 +28,13 @@
28
28
  performance = [],
29
29
 
30
30
  query = arguments[0],
31
- methodInvoked = (typeof query === 'string'),
31
+ methodInvoked = typeof query === 'string',
32
32
  queryArguments = [].slice.call(arguments, 1),
33
33
  returnedValue
34
34
  ;
35
35
  $allModules.each(function () {
36
36
  var
37
- settings = ($.isPlainObject(parameters))
37
+ settings = $.isPlainObject(parameters)
38
38
  ? $.extend(true, {}, $.fn.toast.settings, parameters)
39
39
  : $.extend({}, $.fn.toast.settings),
40
40
 
@@ -55,7 +55,7 @@
55
55
  $progressBar,
56
56
  $animationObject,
57
57
  $close,
58
- $context = (settings.context)
58
+ $context = settings.context
59
59
  ? ([window, document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
60
60
  : $('body'),
61
61
 
@@ -147,7 +147,11 @@
147
147
  create: {
148
148
  container: function () {
149
149
  module.verbose('Creating container');
150
- $context.append($('<div/>', { class: settings.position + ' ' + className.container + ' ' + (settings.horizontal ? className.horizontal : '') + ' ' + (settings.context && settings.context !== 'body' ? className.absolute : '') }));
150
+ $context.append($('<div/>', {
151
+ class: settings.position + ' ' + className.container + ' '
152
+ + (settings.horizontal ? className.horizontal : '') + ' '
153
+ + (settings.context && settings.context !== 'body' ? className.absolute : ''),
154
+ }));
151
155
  },
152
156
  id: function () {
153
157
  id = (Math.random().toString(16) + '000000000').slice(2, 10);
@@ -208,7 +212,7 @@
208
212
  } else {
209
213
  $toast = settings.cloneModule ? $module.clone().removeAttr('id') : $module;
210
214
  $close = $toast.find('> i' + module.helpers.toClass(className.close));
211
- settings.closeIcon = ($close.length > 0);
215
+ settings.closeIcon = $close.length > 0;
212
216
  if (iconClass !== '') {
213
217
  $toast.find(selector.icon).attr('class', iconClass + ' ' + className.icon);
214
218
  }
@@ -242,10 +246,15 @@
242
246
  }
243
247
  settings.actions.forEach(function (el) {
244
248
  var
245
- icon = el[fields.icon] ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
249
+ icon = el[fields.icon]
250
+ ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
251
+ + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
252
+ : '',
246
253
  text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
247
254
  cls = module.helpers.deQuote(el[fields.class] || ''),
248
- click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {}
255
+ click = el[fields.click] && isFunction(el[fields.click])
256
+ ? el[fields.click]
257
+ : function () {}
249
258
  ;
250
259
  $actions.append($('<button/>', {
251
260
  html: icon + text,
@@ -482,7 +491,13 @@
482
491
  return id;
483
492
  },
484
493
  containers: function () {
485
- return $context.children(module.helpers.toClass(settings.position) + selector.container + (settings.horizontal ? module.helpers.toClass(className.horizontal) : ':not(' + module.helpers.toClass(className.horizontal) + ')') + (settings.context && settings.context !== 'body' ? module.helpers.toClass(className.absolute) : ':not(' + module.helpers.toClass(className.absolute) + ')'));
494
+ return $context.children(module.helpers.toClass(settings.position) + selector.container
495
+ + (settings.horizontal
496
+ ? module.helpers.toClass(className.horizontal)
497
+ : ':not(' + module.helpers.toClass(className.horizontal) + ')')
498
+ + (settings.context && settings.context !== 'body'
499
+ ? module.helpers.toClass(className.absolute)
500
+ : ':not(' + module.helpers.toClass(className.absolute) + ')'));
486
501
  },
487
502
  container: function () {
488
503
  return module.get.containers()[0];
@@ -497,7 +512,11 @@
497
512
  return $(module.get.container()).find(selector.box);
498
513
  },
499
514
  iconClass: function () {
500
- return typeof settings.showIcon === 'string' ? settings.showIcon : settings.showIcon && settings.icons[settings.class] ? settings.icons[settings.class] : '';
515
+ return typeof settings.showIcon === 'string'
516
+ ? settings.showIcon
517
+ : (settings.showIcon && settings.icons[settings.class]
518
+ ? settings.icons[settings.class]
519
+ : '');
501
520
  },
502
521
  remainingTime: function () {
503
522
  return $animationObject ? $animationObject.css('opacity') * settings.displayTime : 0;
@@ -715,7 +734,7 @@
715
734
  query = query.split(/[ .]/);
716
735
  maxDepth = query.length - 1;
717
736
  $.each(query, function (depth, value) {
718
- var camelCaseValue = (depth != maxDepth)
737
+ var camelCaseValue = depth != maxDepth
719
738
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
720
739
  : query
721
740
  ;
@@ -769,7 +788,7 @@
769
788
  }
770
789
  });
771
790
 
772
- return (returnedValue !== undefined)
791
+ return returnedValue !== undefined
773
792
  ? returnedValue
774
793
  : this;
775
794
  };
@@ -913,16 +932,21 @@
913
932
  return n1 * x * x;
914
933
  }
915
934
  if (x < 2 / d1) {
916
- return n1 * (x -= 1.5 / d1) * x + 0.75;
935
+ x -= 1.5 / d1;
936
+
937
+ return n1 * x * x + 0.75;
917
938
  }
918
939
  if (x < 2.5 / d1) {
919
- return n1 * (x -= 2.25 / d1) * x + 0.9375;
940
+ x -= 2.25 / d1;
941
+
942
+ return n1 * x * x + 0.9375;
920
943
  }
944
+ x -= 2.625 / d1;
921
945
 
922
- return n1 * (x -= 2.625 / d1) * x + 0.984375;
946
+ return n1 * x * x + 0.984375;
923
947
  },
924
948
  easeOutCubic: function (t) {
925
- return (--t) * t * t + 1;
949
+ return --t * t * t + 1;
926
950
  },
927
951
  });
928
952
  })(jQuery, window, document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Toast
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Transition
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Transition
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -30,7 +30,7 @@
30
30
  moduleArguments = arguments,
31
31
  query = moduleArguments[0],
32
32
  queryArguments = [].slice.call(arguments, 1),
33
- methodInvoked = (typeof query === 'string'),
33
+ methodInvoked = typeof query === 'string',
34
34
 
35
35
  returnedValue
36
36
  ;
@@ -139,11 +139,11 @@
139
139
  ? module.get.direction()
140
140
  : 'static';
141
141
  }
142
- interval = (interval !== undefined)
142
+ interval = interval !== undefined
143
143
  ? interval
144
144
  : settings.interval;
145
- shouldReverse = (settings.reverse == 'auto' && direction == className.outward);
146
- delay = (shouldReverse || settings.reverse === true)
145
+ shouldReverse = settings.reverse == 'auto' && direction == className.outward;
146
+ delay = shouldReverse || settings.reverse === true
147
147
  ? ($allModules.length - index) * interval
148
148
  : index * interval;
149
149
  module.debug('Delaying animation by', delay);
@@ -253,7 +253,7 @@
253
253
  var
254
254
  style = $module.attr('style'),
255
255
  currentDisplay = $module.css('display'),
256
- emptyStyle = (style === undefined || style === '')
256
+ emptyStyle = style === undefined || style === ''
257
257
  ;
258
258
  if (currentDisplay !== 'none' && !module.is.hidden()) {
259
259
  module.verbose('Overriding default display to hide element');
@@ -315,7 +315,7 @@
315
315
  },
316
316
  duration: function (animationName, duration) {
317
317
  duration = duration || settings.duration;
318
- duration = (typeof duration === 'number')
318
+ duration = typeof duration === 'number'
319
319
  ? duration + 'ms'
320
320
  : duration;
321
321
  if (duration || duration === 0) {
@@ -525,7 +525,7 @@
525
525
  animationClass: function (animation) {
526
526
  var
527
527
  animationClass = animation || settings.animation,
528
- directionClass = (module.can.transition() && !module.has.direction())
528
+ directionClass = module.can.transition() && !module.has.direction()
529
529
  ? module.get.direction() + ' '
530
530
  : ''
531
531
  ;
@@ -536,7 +536,7 @@
536
536
  + animationClass;
537
537
  },
538
538
  currentAnimation: function () {
539
- return (module.cache && module.cache.animation !== undefined)
539
+ return module.cache && module.cache.animation !== undefined
540
540
  ? module.cache.animation
541
541
  : false;
542
542
  },
@@ -579,14 +579,14 @@
579
579
  duration = $module.css('animation-duration') || 0;
580
580
  }
581
581
 
582
- return (typeof duration === 'string')
583
- ? (duration.indexOf('ms') > -1)
582
+ return typeof duration === 'string'
583
+ ? (duration.indexOf('ms') > -1
584
584
  ? parseFloat(duration)
585
- : parseFloat(duration) * 1000
585
+ : parseFloat(duration) * 1000)
586
586
  : duration;
587
587
  },
588
588
  displayType: function (shouldDetermine) {
589
- shouldDetermine = (shouldDetermine !== undefined)
589
+ shouldDetermine = shouldDetermine !== undefined
590
590
  ? shouldDetermine
591
591
  : true;
592
592
  if (settings.displayType) {
@@ -714,13 +714,13 @@
714
714
  module.save.transitionExists(animation, directionExists);
715
715
  }
716
716
 
717
- return (transitionExists !== undefined)
717
+ return transitionExists !== undefined
718
718
  ? transitionExists
719
719
  : directionExists;
720
720
  },
721
721
  animate: function () {
722
722
  // can transition does not return a value if animation does not exist
723
- return (module.can.transition() !== undefined);
723
+ return module.can.transition() !== undefined;
724
724
  },
725
725
  },
726
726
 
@@ -741,7 +741,7 @@
741
741
  animation = animation || settings.animation;
742
742
  animation = '.' + animation.replace(' ', '.');
743
743
 
744
- return ($module.filter(animation).length > 0);
744
+ return $module.filter(animation).length > 0;
745
745
  },
746
746
  visible: function () {
747
747
  return $module.is(':visible');
@@ -750,7 +750,7 @@
750
750
  return $module.css('visibility') === 'hidden';
751
751
  },
752
752
  supported: function () {
753
- return (animationEnd !== false);
753
+ return animationEnd !== false;
754
754
  },
755
755
  },
756
756
 
@@ -943,7 +943,7 @@
943
943
  query = query.split(/[ .]/);
944
944
  maxDepth = query.length - 1;
945
945
  $.each(query, function (depth, value) {
946
- var camelCaseValue = (depth != maxDepth)
946
+ var camelCaseValue = depth != maxDepth
947
947
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
948
948
  : query
949
949
  ;
@@ -978,7 +978,7 @@
978
978
  returnedValue = response;
979
979
  }
980
980
 
981
- return (found !== undefined)
981
+ return found !== undefined
982
982
  ? found
983
983
  : false;
984
984
  },
@@ -986,7 +986,7 @@
986
986
  module.initialize();
987
987
  });
988
988
 
989
- return (returnedValue !== undefined)
989
+ return returnedValue !== undefined
990
990
  ? returnedValue
991
991
  : this;
992
992
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Transition
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Visibility
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Visibility
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -15,7 +15,7 @@
15
15
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
16
  }
17
17
 
18
- window = (window !== undefined && window.Math === Math)
18
+ window = window !== undefined && window.Math === Math
19
19
  ? window
20
20
  : globalThis;
21
21
 
@@ -28,7 +28,7 @@
28
28
  performance = [],
29
29
 
30
30
  query = arguments[0],
31
- methodInvoked = (typeof query === 'string'),
31
+ methodInvoked = typeof query === 'string',
32
32
  queryArguments = [].slice.call(arguments, 1),
33
33
  returnedValue,
34
34
 
@@ -38,7 +38,7 @@
38
38
 
39
39
  $allModules.each(function () {
40
40
  var
41
- settings = ($.isPlainObject(parameters))
41
+ settings = $.isPlainObject(parameters)
42
42
  ? $.extend(true, {}, $.fn.visibility.settings, parameters)
43
43
  : $.extend({}, $.fn.visibility.settings),
44
44
 
@@ -227,7 +227,7 @@
227
227
  },
228
228
 
229
229
  precache: function (images, callback) {
230
- if (!(Array.isArray(images))) {
230
+ if (!Array.isArray(images)) {
231
231
  images = [images];
232
232
  }
233
233
  var
@@ -427,21 +427,21 @@
427
427
  },
428
428
  verticallyScrollableContext: function () {
429
429
  var
430
- overflowY = ($context[0] !== window)
430
+ overflowY = $context[0] !== window
431
431
  ? $context.css('overflow-y')
432
432
  : false
433
433
  ;
434
434
 
435
- return (overflowY == 'auto' || overflowY == 'scroll');
435
+ return overflowY == 'auto' || overflowY == 'scroll';
436
436
  },
437
437
  horizontallyScrollableContext: function () {
438
438
  var
439
- overflowX = ($context[0] !== window)
439
+ overflowX = $context[0] !== window
440
440
  ? $context.css('overflow-x')
441
441
  : false
442
442
  ;
443
443
 
444
- return (overflowX == 'auto' || overflowX == 'scroll');
444
+ return overflowX == 'auto' || overflowX == 'scroll';
445
445
  },
446
446
  },
447
447
 
@@ -515,7 +515,7 @@
515
515
  if (amount && newCallback) {
516
516
  settings.onPassed[amount] = newCallback;
517
517
  } else if (amount !== undefined) {
518
- return (module.get.pixelsPassed(amount) > calculations.pixelsPassed);
518
+ return module.get.pixelsPassed(amount) > calculations.pixelsPassed;
519
519
  } else if (calculations.passing) {
520
520
  $.each(settings.onPassed, function (amount, callback) {
521
521
  if (calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) {
@@ -873,7 +873,7 @@
873
873
  ;
874
874
  module.verbose('Saving element position');
875
875
  // (quicker than $.extend)
876
- element.fits = (element.height < screen.height);
876
+ element.fits = element.height < screen.height;
877
877
  element.offset = $module.offset();
878
878
  element.width = $module.outerWidth();
879
879
  element.height = $module.outerHeight();
@@ -907,21 +907,21 @@
907
907
  }
908
908
 
909
909
  // visibility
910
- element.topPassed = (screen.top >= element.top);
911
- element.bottomPassed = (screen.top >= element.bottom);
910
+ element.topPassed = screen.top >= element.top;
911
+ element.bottomPassed = screen.top >= element.bottom;
912
912
  element.topVisible = (screen.bottom >= element.top) && !element.topPassed;
913
913
  element.bottomVisible = (screen.bottom >= element.bottom) && !element.bottomPassed;
914
914
  element.pixelsPassed = 0;
915
915
  element.percentagePassed = 0;
916
916
 
917
917
  // meta calculations
918
- element.onScreen = ((element.topVisible || element.passing) && !element.bottomPassed);
919
- element.passing = (element.topPassed && !element.bottomPassed);
920
- element.offScreen = (!element.onScreen);
918
+ element.onScreen = (element.topVisible || element.passing) && !element.bottomPassed;
919
+ element.passing = element.topPassed && !element.bottomPassed;
920
+ element.offScreen = !element.onScreen;
921
921
 
922
922
  // passing calculations
923
923
  if (element.passing) {
924
- element.pixelsPassed = (screen.top - element.top);
924
+ element.pixelsPassed = screen.top - element.top;
925
925
  element.percentagePassed = (screen.top - element.top) / element.height;
926
926
  }
927
927
  module.cache.element = element;
@@ -957,13 +957,13 @@
957
957
  element = module.get.elementCalculations()
958
958
  ;
959
959
  if (amount.search('%') > -1) {
960
- return (element.height * (parseInt(amount, 10) / 100));
960
+ return element.height * (parseInt(amount, 10) / 100);
961
961
  }
962
962
 
963
963
  return parseInt(amount, 10);
964
964
  },
965
965
  occurred: function (callback) {
966
- return (module.cache.occurred !== undefined)
966
+ return module.cache.occurred !== undefined
967
967
  ? module.cache.occurred[callback] || false
968
968
  : false;
969
969
  },
@@ -1127,7 +1127,7 @@
1127
1127
  query = query.split(/[ .]/);
1128
1128
  maxDepth = query.length - 1;
1129
1129
  $.each(query, function (depth, value) {
1130
- var camelCaseValue = (depth != maxDepth)
1130
+ var camelCaseValue = depth != maxDepth
1131
1131
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1132
1132
  : query
1133
1133
  ;
@@ -1182,7 +1182,7 @@
1182
1182
  }
1183
1183
  });
1184
1184
 
1185
- return (returnedValue !== undefined)
1185
+ return returnedValue !== undefined
1186
1186
  ? returnedValue
1187
1187
  : this;
1188
1188
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.23+27384cb
2
+ * # Fomantic UI - 2.9.1-beta.24+029436f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *