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 - State
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - State
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
 
@@ -29,14 +29,14 @@
29
29
  performance = [],
30
30
 
31
31
  query = arguments[0],
32
- methodInvoked = (typeof query === 'string'),
32
+ methodInvoked = typeof query === 'string',
33
33
  queryArguments = [].slice.call(arguments, 1),
34
34
 
35
35
  returnedValue
36
36
  ;
37
37
  $allModules.each(function () {
38
38
  var
39
- settings = ($.isPlainObject(parameters))
39
+ settings = $.isPlainObject(parameters)
40
40
  ? $.extend(true, {}, $.fn.state.settings, parameters)
41
41
  : $.extend({}, $.fn.state.settings),
42
42
 
@@ -130,7 +130,7 @@
130
130
  return $module.hasClass(className.loading);
131
131
  },
132
132
  inactive: function () {
133
- return !($module.hasClass(className.active));
133
+ return !$module.hasClass(className.active);
134
134
  },
135
135
  state: function (state) {
136
136
  if (className[state] === undefined) {
@@ -141,13 +141,13 @@
141
141
  },
142
142
 
143
143
  enabled: function () {
144
- return !($module.is(settings.filter.active));
144
+ return !$module.is(settings.filter.active);
145
145
  },
146
146
  disabled: function () {
147
- return ($module.is(settings.filter.active));
147
+ return $module.is(settings.filter.active);
148
148
  },
149
149
  textEnabled: function () {
150
- return !($module.is(settings.filter.text));
150
+ return !$module.is(settings.filter.text);
151
151
  },
152
152
 
153
153
  // definitions for automatic type detection
@@ -339,7 +339,7 @@
339
339
 
340
340
  get: {
341
341
  text: function () {
342
- return (settings.selector.text)
342
+ return settings.selector.text
343
343
  ? $module.find(settings.selector.text).text()
344
344
  : $module.html();
345
345
  },
@@ -519,7 +519,7 @@
519
519
  query = query.split(/[ .]/);
520
520
  maxDepth = query.length - 1;
521
521
  $.each(query, function (depth, value) {
522
- var camelCaseValue = (depth != maxDepth)
522
+ var camelCaseValue = depth != maxDepth
523
523
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
524
524
  : query
525
525
  ;
@@ -572,7 +572,7 @@
572
572
  }
573
573
  });
574
574
 
575
- return (returnedValue !== undefined)
575
+ return returnedValue !== undefined
576
576
  ? returnedValue
577
577
  : this;
578
578
  };
@@ -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 - Statistic
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Statistic
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 - Statistic
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Statistic
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 - Step
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Step
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 - Step
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Step
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 - Sticky
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sticky
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 - Sticky
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sticky
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
 
@@ -29,14 +29,14 @@
29
29
  performance = [],
30
30
 
31
31
  query = arguments[0],
32
- methodInvoked = (typeof query === 'string'),
32
+ methodInvoked = typeof query === 'string',
33
33
  queryArguments = [].slice.call(arguments, 1),
34
34
  returnedValue
35
35
  ;
36
36
 
37
37
  $allModules.each(function () {
38
38
  var
39
- settings = ($.isPlainObject(parameters))
39
+ settings = $.isPlainObject(parameters)
40
40
  ? $.extend(true, {}, $.fn.sticky.settings, parameters)
41
41
  : $.extend({}, $.fn.sticky.settings),
42
42
 
@@ -237,7 +237,7 @@
237
237
  ;
238
238
  $element.addClass(className.supported);
239
239
 
240
- return ($element.css('position').match('sticky'));
240
+ return $element.css('position').match('sticky');
241
241
  },
242
242
  },
243
243
 
@@ -279,8 +279,8 @@
279
279
  context.offset.left += scrollContext.left;
280
280
  }
281
281
  module.cache = {
282
- fits: ((element.height + settings.offset) <= scrollContext.height),
283
- sameHeight: (element.height == context.height),
282
+ fits: (element.height + settings.offset) <= scrollContext.height,
283
+ sameHeight: element.height == context.height,
284
284
  scrollContext: {
285
285
  height: scrollContext.height,
286
286
  },
@@ -320,8 +320,8 @@
320
320
  scrollChange: function (scroll) {
321
321
  scroll = scroll || $scroll.scrollTop();
322
322
 
323
- return (module.lastScroll)
324
- ? (scroll - module.lastScroll)
323
+ return module.lastScroll
324
+ ? scroll - module.lastScroll
325
325
  : 0;
326
326
  },
327
327
  currentElementScroll: function () {
@@ -329,7 +329,7 @@
329
329
  return module.elementScroll;
330
330
  }
331
331
 
332
- return (module.is.top())
332
+ return module.is.top()
333
333
  ? Math.abs(parseInt($module.css('top'), 10)) || 0
334
334
  : Math.abs(parseInt($module.css('bottom'), 10)) || 0;
335
335
  },
@@ -340,9 +340,9 @@
340
340
  element = module.cache.element,
341
341
  scrollContext = module.cache.scrollContext,
342
342
  delta = module.get.scrollChange(scroll),
343
- maxScroll = (element.height - scrollContext.height + settings.offset),
343
+ maxScroll = element.height - scrollContext.height + settings.offset,
344
344
  elementScroll = module.get.currentElementScroll(),
345
- possibleScroll = (elementScroll + delta)
345
+ possibleScroll = elementScroll + delta
346
346
  ;
347
347
  if (module.cache.fits || possibleScroll < 0) {
348
348
  elementScroll = 0;
@@ -424,7 +424,7 @@
424
424
  if (module.is.top()) {
425
425
  $module
426
426
  .css('bottom', '')
427
- .css('top', (-scroll) + 'px')
427
+ .css('top', -scroll + 'px')
428
428
  ;
429
429
  }
430
430
  if (module.is.bottom()) {
@@ -444,7 +444,7 @@
444
444
 
445
445
  is: {
446
446
  standardScroll: function () {
447
- return ($scroll[0] == window);
447
+ return $scroll[0] == window;
448
448
  },
449
449
  top: function () {
450
450
  return $module.hasClass(className.top);
@@ -453,10 +453,10 @@
453
453
  return $module.hasClass(className.bottom);
454
454
  },
455
455
  initialPosition: function () {
456
- return (!module.is.fixed() && !module.is.bound());
456
+ return !module.is.fixed() && !module.is.bound();
457
457
  },
458
458
  hidden: function () {
459
- return (!$module.is(':visible'));
459
+ return !$module.is(':visible');
460
460
  },
461
461
  bound: function () {
462
462
  return $module.hasClass(className.bound);
@@ -475,20 +475,20 @@
475
475
  element = cache.element,
476
476
  scrollContext = cache.scrollContext,
477
477
  context = cache.context,
478
- offset = (module.is.bottom() && settings.pushing)
478
+ offset = module.is.bottom() && settings.pushing
479
479
  ? settings.bottomOffset
480
480
  : settings.offset,
481
481
  scroll = {
482
482
  top: cachedPosition + offset,
483
483
  bottom: cachedPosition + offset + scrollContext.height,
484
484
  },
485
- elementScroll = (fits)
485
+ elementScroll = fits
486
486
  ? 0
487
487
  : module.get.elementScroll(scroll.top),
488
488
 
489
489
  // shorthand
490
490
  doesntFit = !fits,
491
- elementVisible = (element.height !== 0)
491
+ elementVisible = element.height !== 0
492
492
  ;
493
493
  if (elementVisible && !sameHeight) {
494
494
  if (module.is.initialPosition()) {
@@ -795,7 +795,7 @@
795
795
  query = query.split(/[ .]/);
796
796
  maxDepth = query.length - 1;
797
797
  $.each(query, function (depth, value) {
798
- var camelCaseValue = (depth != maxDepth)
798
+ var camelCaseValue = depth != maxDepth
799
799
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
800
800
  : query
801
801
  ;
@@ -846,7 +846,7 @@
846
846
  }
847
847
  });
848
848
 
849
- return (returnedValue !== undefined)
849
+ return returnedValue !== undefined
850
850
  ? returnedValue
851
851
  : this;
852
852
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Sticky
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Sticky
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 - Tab
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Tab
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 - Tab
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Tab
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -19,7 +19,7 @@
19
19
  return typeof obj === 'function' && typeof obj.nodeType !== 'number';
20
20
  }
21
21
 
22
- window = (window !== undefined && window.Math === Math)
22
+ window = window !== undefined && window.Math === Math
23
23
  ? window
24
24
  : globalThis;
25
25
 
@@ -35,7 +35,7 @@
35
35
  performance = [],
36
36
 
37
37
  query = arguments[0],
38
- methodInvoked = (typeof query === 'string'),
38
+ methodInvoked = typeof query === 'string',
39
39
  queryArguments = [].slice.call(arguments, 1),
40
40
 
41
41
  initializedHistory = false,
@@ -44,7 +44,7 @@
44
44
 
45
45
  $allModules.each(function () {
46
46
  var
47
- settings = ($.isPlainObject(parameters))
47
+ settings = $.isPlainObject(parameters)
48
48
  ? $.extend(true, {}, $.fn.tab.settings, parameters)
49
49
  : $.extend({}, $.fn.tab.settings),
50
50
 
@@ -259,7 +259,7 @@
259
259
  cache: {
260
260
 
261
261
  read: function (cacheKey) {
262
- return (cacheKey !== undefined)
262
+ return cacheKey !== undefined
263
263
  ? cache[cacheKey]
264
264
  : false;
265
265
  },
@@ -286,7 +286,7 @@
286
286
  set: {
287
287
  auto: function () {
288
288
  var
289
- url = (typeof settings.path === 'string')
289
+ url = typeof settings.path === 'string'
290
290
  ? settings.path.replace(/\/$/, '') + '/{$tab}'
291
291
  : '/{$tab}'
292
292
  ;
@@ -323,11 +323,11 @@
323
323
 
324
324
  changeTab: function (tabPath) {
325
325
  var
326
- pushStateAvailable = (window.history && window.history.pushState),
327
- shouldIgnoreLoad = (pushStateAvailable && settings.ignoreFirstLoad && firstLoad),
328
- remoteContent = (settings.auto || $.isPlainObject(settings.apiSettings)),
326
+ pushStateAvailable = window.history && window.history.pushState,
327
+ shouldIgnoreLoad = pushStateAvailable && settings.ignoreFirstLoad && firstLoad,
328
+ remoteContent = settings.auto || $.isPlainObject(settings.apiSettings),
329
329
  // only add default path if not remote content
330
- pathArray = (remoteContent && !shouldIgnoreLoad)
330
+ pathArray = remoteContent && !shouldIgnoreLoad
331
331
  ? module.utilities.pathToArray(tabPath)
332
332
  : module.get.defaultPathArray(tabPath)
333
333
  ;
@@ -338,7 +338,7 @@
338
338
  currentPath = module.utilities.arrayToPath(currentPathArray),
339
339
 
340
340
  isTab = module.is.tab(currentPath),
341
- isLastIndex = (index + 1 == pathArray.length),
341
+ isLastIndex = index + 1 == pathArray.length,
342
342
 
343
343
  $tab = module.get.tabElement(currentPath),
344
344
  $anchor,
@@ -358,7 +358,7 @@
358
358
  } else {
359
359
  nextPathArray = pathArray.slice(0, index + 2);
360
360
  nextPath = module.utilities.arrayToPath(nextPathArray);
361
- isLastTab = (!module.is.tab(nextPath));
361
+ isLastTab = !module.is.tab(nextPath);
362
362
  if (isLastTab) {
363
363
  module.verbose('Tab parameters found', nextPathArray);
364
364
  }
@@ -431,7 +431,7 @@
431
431
 
432
432
  scrollTo: function ($element) {
433
433
  var
434
- scrollOffset = ($element && $element.length > 0)
434
+ scrollOffset = $element && $element.length > 0
435
435
  ? $element.offset().top
436
436
  : false
437
437
  ;
@@ -447,7 +447,7 @@
447
447
  $tab = module.get.tabElement(tabPath),
448
448
  tab = $tab[0]
449
449
  ;
450
- evaluateScripts = (evaluateScripts !== undefined)
450
+ evaluateScripts = evaluateScripts !== undefined
451
451
  ? evaluateScripts
452
452
  : settings.evaluateScripts;
453
453
  if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() == 'dom' && typeof html !== 'string') {
@@ -513,7 +513,7 @@
513
513
  },
514
514
  },
515
515
  request = $tab.api('get request') || false,
516
- existingRequest = (request && request.state() === 'pending'),
516
+ existingRequest = request && request.state() === 'pending',
517
517
  requestSettings,
518
518
  cachedContent
519
519
  ;
@@ -554,7 +554,7 @@
554
554
  tab: function (tabPath) {
555
555
  var
556
556
  $tab = module.get.tabElement(tabPath),
557
- $deactiveTabs = (settings.deactivate == 'siblings')
557
+ $deactiveTabs = settings.deactivate == 'siblings'
558
558
  ? $tab.siblings($tabs)
559
559
  : $tabs.not($tab),
560
560
  isActive = $tab.hasClass(className.active)
@@ -575,7 +575,7 @@
575
575
  navigation: function (tabPath) {
576
576
  var
577
577
  $navigation = module.get.navElement(tabPath),
578
- $deactiveNavigation = (settings.deactivate == 'siblings')
578
+ $deactiveNavigation = settings.deactivate == 'siblings'
579
579
  ? $navigation.siblings($allModules)
580
580
  : $allModules.not($navigation),
581
581
  isActive = $navigation.hasClass(className.active)
@@ -611,8 +611,8 @@
611
611
 
612
612
  is: {
613
613
  tab: function (tabName) {
614
- return (tabName !== undefined)
615
- ? (module.get.tabElement(tabName).length > 0)
614
+ return tabName !== undefined
615
+ ? module.get.tabElement(tabName).length > 0
616
616
  : false;
617
617
  },
618
618
  },
@@ -666,7 +666,7 @@
666
666
  $fullPathTab = $tabs.filter('[data-' + metadata.tab + '="' + module.escape.string(tabPath) + '"]');
667
667
  $simplePathTab = $tabs.filter('[data-' + metadata.tab + '="' + module.escape.string(lastTab) + '"]');
668
668
 
669
- return ($fullPathTab.length > 0)
669
+ return $fullPathTab.length > 0
670
670
  ? $fullPathTab
671
671
  : $simplePathTab;
672
672
  },
@@ -701,7 +701,7 @@
701
701
  utilities: {
702
702
  filterArray: function (keepArray, removeArray) {
703
703
  return $.grep(keepArray, function (keepValue) {
704
- return ($.inArray(keepValue, removeArray) == -1);
704
+ return $.inArray(keepValue, removeArray) == -1;
705
705
  });
706
706
  },
707
707
  last: function (array) {
@@ -837,7 +837,7 @@
837
837
  query = query.split(/[ .]/);
838
838
  maxDepth = query.length - 1;
839
839
  $.each(query, function (depth, value) {
840
- var camelCaseValue = (depth != maxDepth)
840
+ var camelCaseValue = depth != maxDepth
841
841
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
842
842
  : query
843
843
  ;
@@ -889,7 +889,7 @@
889
889
  }
890
890
  });
891
891
 
892
- return (returnedValue !== undefined)
892
+ return returnedValue !== undefined
893
893
  ? returnedValue
894
894
  : this;
895
895
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.23+27384cb - Tab
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Tab
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 - Table
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Table
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 - Table
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Table
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 - Text
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Text
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 - Text
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Text
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 - Toast
2
+ * # Fomantic-UI 2.9.1-beta.24+029436f - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *