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

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 (193) hide show
  1. package/.eslint/eqeqeq-rule.js +18 -0
  2. package/.eslint/index.js +3 -0
  3. package/.eslintrc.js +1 -2
  4. package/dist/components/accordion.css +1 -1
  5. package/dist/components/accordion.js +4 -4
  6. package/dist/components/accordion.min.css +1 -1
  7. package/dist/components/accordion.min.js +2 -2
  8. package/dist/components/ad.css +1 -1
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +17 -17
  11. package/dist/components/api.min.js +2 -2
  12. package/dist/components/breadcrumb.css +1 -1
  13. package/dist/components/breadcrumb.min.css +1 -1
  14. package/dist/components/button.css +1 -1
  15. package/dist/components/button.min.css +1 -1
  16. package/dist/components/calendar.css +1 -1
  17. package/dist/components/calendar.js +18 -17
  18. package/dist/components/calendar.min.css +1 -1
  19. package/dist/components/calendar.min.js +2 -2
  20. package/dist/components/card.css +1 -1
  21. package/dist/components/card.min.css +1 -1
  22. package/dist/components/checkbox.css +1 -1
  23. package/dist/components/checkbox.js +11 -11
  24. package/dist/components/checkbox.min.css +1 -1
  25. package/dist/components/checkbox.min.js +2 -2
  26. package/dist/components/comment.css +1 -1
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +1 -1
  29. package/dist/components/container.min.css +1 -1
  30. package/dist/components/dimmer.css +1 -1
  31. package/dist/components/dimmer.js +9 -9
  32. package/dist/components/dimmer.min.css +1 -1
  33. package/dist/components/dimmer.min.js +2 -2
  34. package/dist/components/divider.css +1 -1
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +1 -1
  37. package/dist/components/dropdown.js +103 -91
  38. package/dist/components/dropdown.min.css +1 -1
  39. package/dist/components/dropdown.min.js +2 -2
  40. package/dist/components/embed.css +1 -1
  41. package/dist/components/embed.js +5 -5
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +2 -2
  44. package/dist/components/feed.css +1 -1
  45. package/dist/components/feed.min.css +1 -1
  46. package/dist/components/flag.css +1 -1
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/flyout.css +1 -1
  49. package/dist/components/flyout.js +10 -10
  50. package/dist/components/flyout.min.css +1 -1
  51. package/dist/components/flyout.min.js +2 -2
  52. package/dist/components/form.css +1 -1
  53. package/dist/components/form.js +77 -60
  54. package/dist/components/form.min.css +1 -1
  55. package/dist/components/form.min.js +2 -2
  56. package/dist/components/grid.css +1 -1
  57. package/dist/components/grid.min.css +1 -1
  58. package/dist/components/header.css +1 -1
  59. package/dist/components/header.min.css +1 -1
  60. package/dist/components/icon.css +1 -1
  61. package/dist/components/icon.min.css +1 -1
  62. package/dist/components/image.css +1 -1
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +1 -1
  65. package/dist/components/input.min.css +1 -1
  66. package/dist/components/item.css +1 -1
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +1 -1
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +1 -1
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +1 -1
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/message.css +1 -1
  75. package/dist/components/message.min.css +1 -1
  76. package/dist/components/modal.css +1 -1
  77. package/dist/components/modal.js +4 -4
  78. package/dist/components/modal.min.css +1 -1
  79. package/dist/components/modal.min.js +2 -2
  80. package/dist/components/nag.css +1 -1
  81. package/dist/components/nag.js +5 -5
  82. package/dist/components/nag.min.css +1 -1
  83. package/dist/components/nag.min.js +2 -2
  84. package/dist/components/placeholder.css +1 -1
  85. package/dist/components/placeholder.min.css +1 -1
  86. package/dist/components/popup.css +1 -1
  87. package/dist/components/popup.js +39 -31
  88. package/dist/components/popup.min.css +1 -1
  89. package/dist/components/popup.min.js +2 -2
  90. package/dist/components/progress.css +1 -1
  91. package/dist/components/progress.js +12 -12
  92. package/dist/components/progress.min.css +1 -1
  93. package/dist/components/progress.min.js +2 -2
  94. package/dist/components/rail.css +1 -1
  95. package/dist/components/rail.min.css +1 -1
  96. package/dist/components/rating.css +1 -1
  97. package/dist/components/rating.js +6 -6
  98. package/dist/components/rating.min.css +1 -1
  99. package/dist/components/rating.min.js +2 -2
  100. package/dist/components/reset.css +1 -1
  101. package/dist/components/reset.min.css +1 -1
  102. package/dist/components/reveal.css +1 -1
  103. package/dist/components/reveal.min.css +1 -1
  104. package/dist/components/search.css +1 -1
  105. package/dist/components/search.js +16 -16
  106. package/dist/components/search.min.css +1 -1
  107. package/dist/components/search.min.js +2 -2
  108. package/dist/components/segment.css +1 -1
  109. package/dist/components/segment.min.css +1 -1
  110. package/dist/components/shape.css +1 -1
  111. package/dist/components/shape.js +5 -5
  112. package/dist/components/shape.min.css +1 -1
  113. package/dist/components/shape.min.js +2 -2
  114. package/dist/components/sidebar.css +1 -1
  115. package/dist/components/sidebar.js +13 -13
  116. package/dist/components/sidebar.min.css +1 -1
  117. package/dist/components/sidebar.min.js +2 -2
  118. package/dist/components/site.css +1 -1
  119. package/dist/components/site.js +4 -4
  120. package/dist/components/site.min.css +1 -1
  121. package/dist/components/site.min.js +2 -2
  122. package/dist/components/slider.js +50 -37
  123. package/dist/components/slider.min.js +2 -2
  124. package/dist/components/state.js +5 -5
  125. package/dist/components/state.min.js +2 -2
  126. package/dist/components/statistic.css +1 -1
  127. package/dist/components/statistic.min.css +1 -1
  128. package/dist/components/step.css +1 -1
  129. package/dist/components/step.min.css +1 -1
  130. package/dist/components/sticky.css +1 -1
  131. package/dist/components/sticky.js +8 -8
  132. package/dist/components/sticky.min.css +1 -1
  133. package/dist/components/sticky.min.js +2 -2
  134. package/dist/components/tab.css +1 -1
  135. package/dist/components/tab.js +17 -17
  136. package/dist/components/tab.min.css +1 -1
  137. package/dist/components/tab.min.js +2 -2
  138. package/dist/components/table.css +1 -1
  139. package/dist/components/table.min.css +1 -1
  140. package/dist/components/text.css +1 -1
  141. package/dist/components/text.min.css +1 -1
  142. package/dist/components/toast.css +1 -1
  143. package/dist/components/toast.js +4 -4
  144. package/dist/components/toast.min.css +1 -1
  145. package/dist/components/toast.min.js +2 -2
  146. package/dist/components/transition.css +1 -1
  147. package/dist/components/transition.js +8 -8
  148. package/dist/components/transition.min.css +1 -1
  149. package/dist/components/transition.min.js +2 -2
  150. package/dist/components/visibility.js +12 -12
  151. package/dist/components/visibility.min.js +2 -2
  152. package/dist/semantic.css +50 -50
  153. package/dist/semantic.js +462 -411
  154. package/dist/semantic.min.css +1 -1
  155. package/dist/semantic.min.js +2 -2
  156. package/package.json +1 -1
  157. package/src/definitions/behaviors/api.js +16 -16
  158. package/src/definitions/behaviors/form.js +76 -59
  159. package/src/definitions/behaviors/state.js +4 -4
  160. package/src/definitions/behaviors/visibility.js +11 -11
  161. package/src/definitions/globals/site.js +3 -3
  162. package/src/definitions/modules/accordion.js +3 -3
  163. package/src/definitions/modules/calendar.js +17 -16
  164. package/src/definitions/modules/checkbox.js +10 -10
  165. package/src/definitions/modules/dimmer.js +8 -8
  166. package/src/definitions/modules/dropdown.js +102 -90
  167. package/src/definitions/modules/embed.js +4 -4
  168. package/src/definitions/modules/flyout.js +9 -9
  169. package/src/definitions/modules/modal.js +3 -3
  170. package/src/definitions/modules/nag.js +4 -4
  171. package/src/definitions/modules/popup.js +38 -30
  172. package/src/definitions/modules/progress.js +11 -11
  173. package/src/definitions/modules/rating.js +5 -5
  174. package/src/definitions/modules/search.js +15 -15
  175. package/src/definitions/modules/shape.js +4 -4
  176. package/src/definitions/modules/sidebar.js +12 -12
  177. package/src/definitions/modules/slider.js +49 -36
  178. package/src/definitions/modules/sticky.js +7 -7
  179. package/src/definitions/modules/tab.js +16 -16
  180. package/src/definitions/modules/toast.js +3 -3
  181. package/src/definitions/modules/transition.js +7 -7
  182. package/tasks/admin/components/init.js +1 -1
  183. package/tasks/admin/components/update.js +1 -1
  184. package/tasks/admin/distributions/create.js +4 -5
  185. package/tasks/admin/distributions/init.js +1 -1
  186. package/tasks/admin/distributions/update.js +1 -1
  187. package/tasks/config/project/config.js +2 -2
  188. package/tasks/config/project/install.js +8 -8
  189. package/tasks/config/project/release.js +1 -1
  190. package/tasks/config/tasks.js +2 -2
  191. package/tasks/docs/metadata.js +1 -1
  192. package/tasks/install.js +2 -2
  193. package/test/modules/module.spec.js +1 -1
@@ -249,7 +249,7 @@
249
249
  + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
250
250
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
251
251
  + ' }';
252
- } else if (direction === 'top' || direction == 'bottom') {
252
+ } else if (direction === 'top' || direction === 'bottom') {
253
253
  style += ''
254
254
  + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
255
255
  + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
@@ -268,7 +268,7 @@
268
268
  + ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
269
269
  + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
270
270
  + ' }';
271
- } else if (direction === 'top' || direction == 'bottom') {
271
+ } else if (direction === 'top' || direction === 'bottom') {
272
272
  style += ''
273
273
  + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
274
274
  + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
@@ -399,7 +399,7 @@
399
399
  module.debug('Other sidebars currently visible');
400
400
  if (settings.exclusive) {
401
401
  // if not overlay queue animation after hide
402
- if (settings.transition != 'overlay') {
402
+ if (settings.transition !== 'overlay') {
403
403
  module.hideOthers(module.show);
404
404
 
405
405
  return;
@@ -456,7 +456,7 @@
456
456
  $otherSidebars
457
457
  .sidebar('hide', function () {
458
458
  callbackCount++;
459
- if (callbackCount == sidebarCount) {
459
+ if (callbackCount === sidebarCount) {
460
460
  callback();
461
461
  }
462
462
  })
@@ -504,7 +504,7 @@
504
504
  module.set.dimmed();
505
505
  };
506
506
  transitionEnd = function (event) {
507
- if (event.target == $transition[0]) {
507
+ if (event.target === $transition[0]) {
508
508
  $transition.off(transitionEvent + elementNamespace, transitionEnd);
509
509
  module.remove.animating();
510
510
  callback.call(element);
@@ -521,7 +521,7 @@
521
521
  pullPage: function (callback) {
522
522
  var
523
523
  transition = module.get.transition(),
524
- $transition = transition == 'overlay' || module.othersActive()
524
+ $transition = transition === 'overlay' || module.othersActive()
525
525
  ? $module
526
526
  : $pusher,
527
527
  animate,
@@ -544,7 +544,7 @@
544
544
  module.remove.visible();
545
545
  };
546
546
  transitionEnd = function (event) {
547
- if (event.target == $transition[0]) {
547
+ if (event.target === $transition[0]) {
548
548
  $transition.off(transitionEvent + elementNamespace, transitionEnd);
549
549
  module.remove.animating();
550
550
  module.remove.closing();
@@ -725,10 +725,10 @@
725
725
  transition
726
726
  ;
727
727
  transition = module.is.mobile()
728
- ? (settings.mobileTransition == 'auto'
728
+ ? (settings.mobileTransition === 'auto'
729
729
  ? settings.defaultTransition.mobile[direction]
730
730
  : settings.mobileTransition)
731
- : (settings.transition == 'auto'
731
+ : (settings.transition === 'auto'
732
732
  ? settings.defaultTransition.computer[direction]
733
733
  : settings.transition);
734
734
  module.verbose('Determined transition', transition);
@@ -964,17 +964,17 @@
964
964
  query = query.split(/[ .]/);
965
965
  maxDepth = query.length - 1;
966
966
  $.each(query, function (depth, value) {
967
- var camelCaseValue = depth != maxDepth
967
+ var camelCaseValue = depth !== maxDepth
968
968
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
969
969
  : query
970
970
  ;
971
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
971
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
972
972
  object = object[camelCaseValue];
973
973
  } else if (object[camelCaseValue] !== undefined) {
974
974
  found = object[camelCaseValue];
975
975
 
976
976
  return false;
977
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
977
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
978
978
  object = object[value];
979
979
  } else if (object[value] !== undefined) {
980
980
  found = object[value];
@@ -337,7 +337,7 @@
337
337
  }
338
338
  },
339
339
  move: function (event) {
340
- if (event.type == 'mousemove') {
340
+ if (event.type === 'mousemove') {
341
341
  event.preventDefault(); // prevent text selection etc.
342
342
  }
343
343
  if (module.is.disabled()) {
@@ -345,14 +345,14 @@
345
345
  return;
346
346
  }
347
347
  var value = module.determine.valueFromEvent(event);
348
- if (event.type == 'mousemove' && $currThumb === undefined) {
348
+ if (event.type === 'mousemove' && $currThumb === undefined) {
349
349
  var
350
350
  eventPos = module.determine.eventPos(event),
351
351
  newPos = module.determine.pos(eventPos)
352
352
  ;
353
353
  $currThumb = initialPosition > newPos ? $thumb : $secondThumb;
354
354
  }
355
- if (module.get.step() == 0 || module.is.smooth()) {
355
+ if (module.get.step() === 0 || module.is.smooth()) {
356
356
  var
357
357
  thumbVal = module.thumbVal,
358
358
  secondThumbVal = module.secondThumbVal,
@@ -411,31 +411,35 @@
411
411
  }
412
412
  if (first || module.is.focused()) {
413
413
  var step = module.determine.keyMovement(event);
414
- if (step != NO_STEP) {
414
+ if (step !== NO_STEP) {
415
415
  event.preventDefault();
416
416
  switch (step) {
417
- case SINGLE_STEP:
417
+ case SINGLE_STEP: {
418
418
  module.takeStep();
419
419
 
420
420
  break;
421
- case BIG_STEP:
421
+ }
422
+ case BIG_STEP: {
422
423
  module.takeStep(module.get.multiplier());
423
424
 
424
425
  break;
425
- case SINGLE_BACKSTEP:
426
+ }
427
+ case SINGLE_BACKSTEP: {
426
428
  module.backStep();
427
429
 
428
430
  break;
429
- case BIG_BACKSTEP:
431
+ }
432
+ case BIG_BACKSTEP: {
430
433
  module.backStep(module.get.multiplier());
431
434
 
432
435
  break;
436
+ }
433
437
  }
434
438
  }
435
439
  }
436
440
  },
437
441
  activateFocus: function (event) {
438
- if (!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) != NO_STEP) {
442
+ if (!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) !== NO_STEP) {
439
443
  event.preventDefault();
440
444
  module.event.keydown(event, true);
441
445
  $module.trigger('focus');
@@ -443,7 +447,7 @@
443
447
  },
444
448
  resize: function (_event) {
445
449
  // To avoid a useless performance cost, we only call the label refresh when its necessary
446
- if (gapRatio != module.get.gapRatio()) {
450
+ if (gapRatio !== module.get.gapRatio()) {
447
451
  module.setup.labels();
448
452
  gapRatio = module.get.gapRatio();
449
453
  }
@@ -459,7 +463,9 @@
459
463
  module.setup.labels();
460
464
  },
461
465
  takeStep: function (multiplier) {
462
- multiplier = multiplier != undefined ? multiplier : 1;
466
+ if (!multiplier) {
467
+ multiplier = 1;
468
+ }
463
469
  var
464
470
  step = module.get.step(),
465
471
  currValue = module.get.currentThumbValue()
@@ -467,7 +473,7 @@
467
473
  module.verbose('Taking a step');
468
474
  if (step > 0) {
469
475
  module.set.value(currValue + step * multiplier);
470
- } else if (step == 0) {
476
+ } else if (step === 0) {
471
477
  var
472
478
  precision = module.get.precision(),
473
479
  newValue = currValue + (multiplier / precision)
@@ -477,7 +483,9 @@
477
483
  },
478
484
 
479
485
  backStep: function (multiplier) {
480
- multiplier = multiplier != undefined ? multiplier : 1;
486
+ if (!multiplier) {
487
+ multiplier = 1;
488
+ }
481
489
  var
482
490
  step = module.get.step(),
483
491
  currValue = module.get.currentThumbValue()
@@ -485,7 +493,7 @@
485
493
  module.verbose('Going back a step');
486
494
  if (step > 0) {
487
495
  module.set.value(currValue - step * multiplier);
488
- } else if (step == 0) {
496
+ } else if (step === 0) {
489
497
  var
490
498
  precision = module.get.precision(),
491
499
  newValue = currValue - (multiplier / precision)
@@ -574,9 +582,9 @@
574
582
  decimalPlaces,
575
583
  step = module.get.step()
576
584
  ;
577
- if (step != 0) {
585
+ if (step !== 0) {
578
586
  var split = String(step).split('.');
579
- decimalPlaces = split.length == 2 ? split[1].length : 0;
587
+ decimalPlaces = split.length === 2 ? split[1].length : 0;
580
588
  } else {
581
589
  decimalPlaces = settings.decimalPlaces;
582
590
  }
@@ -616,12 +624,15 @@
616
624
  }
617
625
 
618
626
  switch (settings.labelType) {
619
- case settings.labelTypes.number:
627
+ case settings.labelTypes.number: {
620
628
  return Math.round(((value * (module.get.step() === 0 ? 1 : module.get.step())) + module.get.min()) * precision) / precision;
621
- case settings.labelTypes.letter:
629
+ }
630
+ case settings.labelTypes.letter: {
622
631
  return alphabet[value % 26];
623
- default:
632
+ }
633
+ default: {
624
634
  return value;
635
+ }
625
636
  }
626
637
  },
627
638
  value: function () {
@@ -632,7 +643,7 @@
632
643
  },
633
644
  thumbValue: function (which) {
634
645
  switch (which) {
635
- case 'second':
646
+ case 'second': {
636
647
  if (module.is.range()) {
637
648
  return module.secondThumbVal;
638
649
  }
@@ -640,9 +651,10 @@
640
651
  module.error(error.notrange);
641
652
 
642
653
  break;
643
-
644
- default:
654
+ }
655
+ default: {
645
656
  return module.thumbVal;
657
+ }
646
658
  }
647
659
  },
648
660
  multiplier: function () {
@@ -650,7 +662,7 @@
650
662
  },
651
663
  thumbPosition: function (which) {
652
664
  switch (which) {
653
- case 'second':
665
+ case 'second': {
654
666
  if (module.is.range()) {
655
667
  return secondPos;
656
668
  }
@@ -658,9 +670,10 @@
658
670
  module.error(error.notrange);
659
671
 
660
672
  break;
661
-
662
- default:
673
+ }
674
+ default: {
663
675
  return position;
676
+ }
664
677
  }
665
678
  },
666
679
  gapRatio: function () {
@@ -748,7 +761,7 @@
748
761
  trackLength = module.get.trackLength(),
749
762
  step = module.get.step(),
750
763
  position = Math.round(ratio * trackLength),
751
- adjustedPos = step == 0 ? position : Math.round(position / step) * step
764
+ adjustedPos = step === 0 ? position : Math.round(position / step) * step
752
765
  ;
753
766
 
754
767
  return adjustedPos;
@@ -824,10 +837,10 @@
824
837
  range = module.get.max() - module.get.min(),
825
838
  step = module.get.step(),
826
839
  value = ratio * range,
827
- difference = step == 0 ? value : Math.round(value / step) * step
840
+ difference = step === 0 ? value : Math.round(value / step) * step
828
841
  ;
829
842
  module.verbose('Determined value based upon position: ' + position + ' as: ' + value);
830
- if (value != difference) {
843
+ if (value !== difference) {
831
844
  module.verbose('Rounding value to closest step: ' + difference);
832
845
  }
833
846
  // Use precision to avoid ugly Javascript floating point rounding issues
@@ -852,16 +865,16 @@
852
865
  ? (module.is.reversed() ? keys.leftArrow : keys.rightArrow)
853
866
  : keys.rightArrow
854
867
  ;
855
- if (key == downArrow || key == leftArrow) {
868
+ if (key === downArrow || key === leftArrow) {
856
869
  return SINGLE_BACKSTEP;
857
870
  }
858
- if (key == upArrow || key == rightArrow) {
871
+ if (key === upArrow || key === rightArrow) {
859
872
  return SINGLE_STEP;
860
873
  }
861
- if (key == keys.pageDown) {
874
+ if (key === keys.pageDown) {
862
875
  return BIG_BACKSTEP;
863
876
  }
864
- if (key == keys.pageUp) {
877
+ if (key === keys.pageUp) {
865
878
  return BIG_STEP;
866
879
  }
867
880
 
@@ -993,7 +1006,7 @@
993
1006
  position: function (newValue, $element) {
994
1007
  var
995
1008
  newPos = module.handleNewValuePosition(newValue),
996
- $targetThumb = $element != undefined ? $element : $currThumb,
1009
+ $targetThumb = $element || $currThumb,
997
1010
  thumbVal = module.thumbVal || module.get.min(),
998
1011
  secondThumbVal = module.secondThumbVal || module.get.min()
999
1012
  ;
@@ -1209,17 +1222,17 @@
1209
1222
  query = query.split(/[ .]/);
1210
1223
  maxDepth = query.length - 1;
1211
1224
  $.each(query, function (depth, value) {
1212
- var camelCaseValue = depth != maxDepth
1225
+ var camelCaseValue = depth !== maxDepth
1213
1226
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1214
1227
  : query
1215
1228
  ;
1216
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
1229
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
1217
1230
  object = object[camelCaseValue];
1218
1231
  } else if (object[camelCaseValue] !== undefined) {
1219
1232
  found = object[camelCaseValue];
1220
1233
 
1221
1234
  return false;
1222
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
1235
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
1223
1236
  object = object[value];
1224
1237
  } else if (object[value] !== undefined) {
1225
1238
  found = object[value];
@@ -190,7 +190,7 @@
190
190
  [].forEach.call(mutations, function (mutation) {
191
191
  if (mutation.removedNodes) {
192
192
  [].forEach.call(mutation.removedNodes, function (node) {
193
- if (node == element || $(node).find(element).length > 0) {
193
+ if (node === element || $(node).find(element).length > 0) {
194
194
  module.debug('Element removed from DOM, tearing down events');
195
195
  module.destroy();
196
196
  }
@@ -280,7 +280,7 @@
280
280
  }
281
281
  module.cache = {
282
282
  fits: (element.height + settings.offset) <= scrollContext.height,
283
- sameHeight: element.height == context.height,
283
+ sameHeight: element.height === context.height,
284
284
  scrollContext: {
285
285
  height: scrollContext.height,
286
286
  },
@@ -418,7 +418,7 @@
418
418
  },
419
419
  scroll: function (scroll) {
420
420
  module.debug('Setting scroll on element', scroll);
421
- if (module.elementScroll == scroll) {
421
+ if (module.elementScroll === scroll) {
422
422
  return;
423
423
  }
424
424
  if (module.is.top()) {
@@ -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);
@@ -795,17 +795,17 @@
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
  ;
802
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
802
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
803
803
  object = object[camelCaseValue];
804
804
  } else if (object[camelCaseValue] !== undefined) {
805
805
  found = object[camelCaseValue];
806
806
 
807
807
  return false;
808
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
808
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
809
809
  object = object[value];
810
810
  } else if (object[value] !== undefined) {
811
811
  found = object[value];
@@ -12,7 +12,7 @@
12
12
  'use strict';
13
13
 
14
14
  function isWindow(obj) {
15
- return obj != null && obj === obj.window;
15
+ return obj !== null && obj === obj.window;
16
16
  }
17
17
 
18
18
  function isFunction(obj) {
@@ -94,12 +94,12 @@
94
94
  }
95
95
 
96
96
  var activeTab = module.determine.activeTab();
97
- if (settings.autoTabActivation && instance === undefined && activeTab == null) {
97
+ if (settings.autoTabActivation && instance === undefined && activeTab === null) {
98
98
  activeTab = settings.autoTabActivation === true ? module.get.initialPath() : settings.autoTabActivation;
99
99
  module.debug('No active tab detected, setting tab active', activeTab);
100
100
  module.changeTab(activeTab);
101
101
  }
102
- if (activeTab != null && settings.history) {
102
+ if (activeTab !== null && settings.history) {
103
103
  var autoUpdate = $.address.autoUpdate();
104
104
  $.address.autoUpdate(false);
105
105
  $.address.value(activeTab);
@@ -193,7 +193,7 @@
193
193
 
194
194
  return false;
195
195
  }
196
- if (settings.historyType == 'state') {
196
+ if (settings.historyType === 'state') {
197
197
  module.debug('Using HTML5 to manage state');
198
198
  if (settings.path !== false) {
199
199
  $.address
@@ -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,
@@ -392,7 +392,7 @@
392
392
  settings.onFirstLoad.call($tab[0], currentPath, parameterArray, historyEvent);
393
393
  }
394
394
  settings.onLoad.call($tab[0], currentPath, parameterArray, historyEvent);
395
- } else if (tabPath.search('/') == -1 && tabPath !== '') {
395
+ } else if (tabPath.search('/') === -1 && tabPath !== '') {
396
396
  // look for in page anchor
397
397
  tabPath = module.escape.string(tabPath);
398
398
  $anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
@@ -450,7 +450,7 @@
450
450
  evaluateScripts = evaluateScripts !== undefined
451
451
  ? evaluateScripts
452
452
  : settings.evaluateScripts;
453
- if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() == 'dom' && typeof html !== 'string') {
453
+ if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() === 'dom' && typeof html !== 'string') {
454
454
  $tab
455
455
  .empty()
456
456
  .append($(html).clone(true))
@@ -481,7 +481,7 @@
481
481
  'X-Remote': true,
482
482
  },
483
483
  onSuccess: function (response) {
484
- if (settings.cacheType == 'response') {
484
+ if (settings.cacheType === 'response') {
485
485
  module.cache.add(fullTabPath, response);
486
486
  }
487
487
  module.update.content(tabPath, response);
@@ -496,7 +496,7 @@
496
496
 
497
497
  if (settings.loadOnce) {
498
498
  module.cache.add(fullTabPath, true);
499
- } else if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() == 'dom' && $tab.children().length > 0) {
499
+ } else if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() === 'dom' && $tab.children().length > 0) {
500
500
  setTimeout(function () {
501
501
  var
502
502
  $clone = $tab.children().clone(true)
@@ -525,7 +525,7 @@
525
525
  module.activate.tab(tabPath);
526
526
  module.debug('Adding cached content', fullTabPath);
527
527
  if (!settings.loadOnce) {
528
- if (settings.evaluateScripts == 'once') {
528
+ if (settings.evaluateScripts === 'once') {
529
529
  module.update.content(tabPath, cachedContent, false);
530
530
  } else {
531
531
  module.update.content(tabPath, cachedContent);
@@ -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)
@@ -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,17 +837,17 @@
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
  ;
844
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
844
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
845
845
  object = object[camelCaseValue];
846
846
  } else if (object[camelCaseValue] !== undefined) {
847
847
  found = object[camelCaseValue];
848
848
 
849
849
  return false;
850
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
850
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
851
851
  object = object[value];
852
852
  } else if (object[value] !== undefined) {
853
853
  found = object[value];
@@ -734,17 +734,17 @@
734
734
  query = query.split(/[ .]/);
735
735
  maxDepth = query.length - 1;
736
736
  $.each(query, function (depth, value) {
737
- var camelCaseValue = depth != maxDepth
737
+ var camelCaseValue = depth !== maxDepth
738
738
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
739
739
  : query
740
740
  ;
741
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
741
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
742
742
  object = object[camelCaseValue];
743
743
  } else if (object[camelCaseValue] !== undefined) {
744
744
  found = object[camelCaseValue];
745
745
 
746
746
  return false;
747
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
747
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
748
748
  object = object[value];
749
749
  } else if (object[value] !== undefined) {
750
750
  found = object[value];
@@ -142,7 +142,7 @@
142
142
  interval = interval !== undefined
143
143
  ? interval
144
144
  : settings.interval;
145
- shouldReverse = settings.reverse == 'auto' && direction == className.outward;
145
+ shouldReverse = settings.reverse === 'auto' && direction === className.outward;
146
146
  delay = shouldReverse || settings.reverse === true
147
147
  ? ($allModules.length - index) * interval
148
148
  : index * interval;
@@ -329,7 +329,7 @@
329
329
  },
330
330
  direction: function (direction) {
331
331
  direction = direction || module.get.direction();
332
- if (direction == className.inward) {
332
+ if (direction === className.inward) {
333
333
  module.set.inward();
334
334
  } else {
335
335
  module.set.outward();
@@ -700,10 +700,10 @@
700
700
  }
701
701
 
702
702
  $clone.remove();
703
- if (currentAnimation != inAnimation) {
703
+ if (currentAnimation !== inAnimation) {
704
704
  module.debug('Direction exists for animation', animation);
705
705
  directionExists = true;
706
- } else if (currentAnimation == 'none' || !currentAnimation) {
706
+ } else if (currentAnimation === 'none' || !currentAnimation) {
707
707
  module.debug('No animation defined in css', animation);
708
708
 
709
709
  return;
@@ -943,17 +943,17 @@
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
  ;
950
- if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
950
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
951
951
  object = object[camelCaseValue];
952
952
  } else if (object[camelCaseValue] !== undefined) {
953
953
  found = object[camelCaseValue];
954
954
 
955
955
  return false;
956
- } else if ($.isPlainObject(object[value]) && (depth != maxDepth)) {
956
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
957
957
  object = object[value];
958
958
  } else if (object[value] !== undefined) {
959
959
  found = object[value];
@@ -85,7 +85,7 @@ module.exports = function (callback) {
85
85
  }
86
86
 
87
87
  // clean folder
88
- if (release.outputRoot.search('../repos') == 0) {
88
+ if (release.outputRoot.startsWith('../repos')) {
89
89
  console.info('Cleaning dir', outputDirectory);
90
90
  del.sync([outputDirectory + '**/*'], { silent: true, force: true });
91
91
  }
@@ -76,7 +76,7 @@ module.exports = function (callback) {
76
76
  ? require(outputDirectory + 'package.json') // eslint-disable-line import/no-dynamic-require
77
77
  : false,
78
78
 
79
- isNewVersion = version && componentPackage.version != version,
79
+ isNewVersion = version && componentPackage.version !== version,
80
80
 
81
81
  commitMessage = isNewVersion
82
82
  ? 'Updated component to version ' + version