foundation-rails 6.4.1.3 → 6.4.3.0

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/app/views/foundation/rails/styleguide/show.html.erb +8 -8
  4. data/bower.json +2 -2
  5. data/lib/foundation/rails/version.rb +1 -1
  6. data/lib/generators/foundation/install_generator.rb +1 -0
  7. data/lib/generators/foundation/templates/_settings.scss +9 -3
  8. data/lib/generators/foundation/templates/browserslist +4 -0
  9. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  10. data/vendor/assets/js/foundation.abide.js +1 -1
  11. data/vendor/assets/js/foundation.accordionMenu.js +2 -2
  12. data/vendor/assets/js/foundation.core.js +1 -1
  13. data/vendor/assets/js/foundation.drilldown.js +3 -3
  14. data/vendor/assets/js/foundation.dropdown.js +41 -21
  15. data/vendor/assets/js/foundation.dropdownMenu.js +4 -5
  16. data/vendor/assets/js/foundation.js +1 -3
  17. data/vendor/assets/js/foundation.offcanvas.js +11 -9
  18. data/vendor/assets/js/foundation.orbit.js +1 -1
  19. data/vendor/assets/js/foundation.reveal.js +2 -3
  20. data/vendor/assets/js/foundation.slider.js +8 -9
  21. data/vendor/assets/js/foundation.sticky.js +2 -3
  22. data/vendor/assets/js/foundation.toggler.js +2 -3
  23. data/vendor/assets/js/foundation.tooltip.js +2 -3
  24. data/vendor/assets/js/foundation.util.box.js +12 -13
  25. data/vendor/assets/js/foundation.util.mediaQuery.js +1 -0
  26. data/vendor/assets/js/foundation.util.triggers.js +2 -3
  27. data/vendor/assets/scss/_global.scss +5 -3
  28. data/vendor/assets/scss/components/_button-group.scss +1 -1
  29. data/vendor/assets/scss/components/_button.scss +6 -0
  30. data/vendor/assets/scss/components/_dropdown-menu.scss +2 -0
  31. data/vendor/assets/scss/components/_menu.scss +15 -1
  32. data/vendor/assets/scss/components/_off-canvas.scss +106 -43
  33. data/vendor/assets/scss/forms/_input-group.scss +9 -2
  34. data/vendor/assets/scss/foundation.scss +2 -1
  35. data/vendor/assets/scss/grid/_flex-grid.scss +0 -4
  36. data/vendor/assets/scss/grid/_position.scss +1 -1
  37. data/vendor/assets/scss/prototype/_prototype.scss +0 -4
  38. data/vendor/assets/scss/prototype/_rounded.scss +1 -1
  39. data/vendor/assets/scss/settings/_settings.scss +9 -3
  40. data/vendor/assets/scss/typography/_base.scss +8 -8
  41. data/vendor/assets/scss/util/_breakpoint.scss +11 -3
  42. data/vendor/assets/scss/util/_mixins.scss +3 -6
  43. data/vendor/assets/scss/xy-grid/_cell.scss +2 -12
  44. data/vendor/assets/scss/xy-grid/_classes.scss +40 -19
  45. data/vendor/assets/scss/xy-grid/_collapse.scss +35 -15
  46. data/vendor/assets/scss/xy-grid/_frame.scss +40 -9
  47. data/vendor/assets/scss/xy-grid/_grid.scss +4 -25
  48. data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
  49. data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
  50. data/vendor/assets/scss/xy-grid/_xy-grid.scss +3 -4
  51. metadata +5 -5
  52. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +0 -90
  53. data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js +0 -262
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c81a28cae284b11d6a1a5a8f9ddda948dac4c3c
4
- data.tar.gz: 2622172078f89769ea78bc036ed43410e30ae066
3
+ metadata.gz: 35698423f24a50b94fee1bcd69b5cba9095c4667
4
+ data.tar.gz: '083fc6987434b78efd3c61275db4df1112e9488e'
5
5
  SHA512:
6
- metadata.gz: 68d337c71604724f61a600ec12a39ffe9435f22581db81d4259c195f2d0c78d760f4785403a0b29202a873bc893d437c3df77422e2743529fc7df33a9982cc25
7
- data.tar.gz: 11c115338844805f9e3fdaaa045aab3d756bb8b4711720b42bd41cfe4b573cd7bf63da74c798a76b62e9f839316861587da2a405d7e50200a1933522c16c41b2
6
+ metadata.gz: 5282769af05a33eadb0057ad704061e5cc5f1ae11b03f579ff6e8bfa0bf80b6708cd637fbaa55ee23e58638f4510164968ad5869b1ab5d19c5f44061f9fb9ebf
7
+ data.tar.gz: e8d8977fbeb7f339b50907290238139ab55679f1cc664029c0cfaf01aa7745bd50799b78ae7998a99589fe118bd45c4d2fff8ba9e2a7585d0ba7f9d240d9e07b
data/README.md CHANGED
@@ -6,9 +6,10 @@
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ Add these lines to your application's Gemfile:
10
10
 
11
- gem 'foundation-rails'
11
+ $ gem 'foundation-rails'
12
+ $ gem 'autoprefixer-rails'
12
13
 
13
14
  And then execute:
14
15
 
@@ -45,8 +45,8 @@
45
45
  </ul>
46
46
 
47
47
 
48
- <div class="row">
49
- <div class="large-4 columns">
48
+ <div class="grid-x grid-padding-x">
49
+ <div class="cell large-4">
50
50
  <ul class="pricing-table">
51
51
  <li class="title">Freelancer</li>
52
52
  <li class="price">$99.99</li>
@@ -57,7 +57,7 @@
57
57
  <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
58
58
  </ul>
59
59
  </div>
60
- <div class="large-4 columns">
60
+ <div class="cell large-4">
61
61
  <ul class="pricing-table">
62
62
  <li class="title">Startup</li>
63
63
  <li class="price">$199.99</li>
@@ -68,7 +68,7 @@
68
68
  <li class="cta-button"><a class="button" href="#">Buy Now</a></li>
69
69
  </ul>
70
70
  </div>
71
- <div class="large-4 columns">
71
+ <div class="cell large-4">
72
72
  <ul class="pricing-table">
73
73
  <li class="title">Enterprise</li>
74
74
  <li class="price">$999.99</li>
@@ -83,14 +83,14 @@
83
83
 
84
84
  <hr>
85
85
 
86
- <div class="row">
87
- <div class="large-12 columns">
86
+ <div class="grid-x grid-padding-x">
87
+ <div class="cell large-12">
88
88
  <h3 class="subheader">Find out more!</h3>
89
89
  </div>
90
90
  </div>
91
91
 
92
- <div class="row">
93
- <div class="large-12 columns">
92
+ <div class="grid-x grid-padding-x">
93
+ <div class="cell large-12">
94
94
  <dl class="tabs" data-tab>
95
95
  <dd class="active"><a href="#panel2-1">Overview</a></dd>
96
96
  <dd><a href="#panel2-2">Features</a></dd>
data/bower.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "foundation-rails",
3
- "version": "6.4.1.0",
3
+ "version": "6.4.3.0",
4
4
  "dependencies": {
5
- "foundation-sites": "6.4.1",
5
+ "foundation-sites": "6.4.3",
6
6
  "motion-ui": "1.2.3"
7
7
  }
8
8
  }
@@ -1,5 +1,5 @@
1
1
  module Foundation
2
2
  module Rails
3
- VERSION = "6.4.1.3"
3
+ VERSION = "6.4.3.0"
4
4
  end
5
5
  end
@@ -56,6 +56,7 @@ module Foundation
56
56
  def create_app_scss
57
57
  template "foundation_and_overrides.scss", File.join(stylesheets_base_dir, "foundation_and_overrides.scss")
58
58
  template "_settings.scss", File.join(stylesheets_base_dir, "_settings.scss")
59
+ template "browserslist", File.join(stylesheets_base_dir, "browserslist")
59
60
  end
60
61
 
61
62
  private
@@ -95,6 +95,7 @@ $global-menu-nested-margin: 1rem;
95
95
  $global-text-direction: ltr;
96
96
  $global-flexbox: true;
97
97
  $global-prototype-breakpoints: false;
98
+ $global-button-cursor: auto;
98
99
  $global-color-pick-contrast-tolerance: 0;
99
100
  $print-transparent-backgrounds: true;
100
101
 
@@ -477,6 +478,7 @@ $menu-icon-spacing: 0.25rem;
477
478
  $menu-item-background-hover: $light-gray;
478
479
  $menu-state-back-compat: true;
479
480
  $menu-centered-back-compat: true;
481
+ $menu-icons-back-compat: true;
480
482
 
481
483
  // 24. Meter
482
484
  // ---------
@@ -491,8 +493,12 @@ $meter-fill-bad: $alert-color;
491
493
  // 25. Off-canvas
492
494
  // --------------
493
495
 
494
- $offcanvas-size: 250px;
495
- $offcanvas-vertical-size: 250px;
496
+ $offcanvas-sizes: (
497
+ small: 250px,
498
+ );
499
+ $offcanvas-vertical-sizes: (
500
+ small: 250px,
501
+ );
496
502
  $offcanvas-background: $light-gray;
497
503
  $offcanvas-shadow: 0 0 10px rgba($black, 0.7);
498
504
  $offcanvas-inner-shadow-size: 20px;
@@ -859,5 +865,5 @@ $grid-margin-gutters: (
859
865
  $grid-padding-gutters: $grid-margin-gutters;
860
866
  $grid-container-padding: $grid-padding-gutters;
861
867
  $grid-container-max: $global-width;
862
- $block-grid-max: 8;
868
+ $xy-block-grid-max: 8;
863
869
 
@@ -0,0 +1,4 @@
1
+ last 2 versions
2
+ ie >= 9
3
+ Android >= 2.3
4
+ ios >= 7
@@ -0,0 +1,31 @@
1
+ ///
2
+ /// Returns whether `$list` contains `$value`.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-contain
5
+ ///
6
+ /// @param {List} $list - list to check
7
+ /// @param {*} $value - value to look for
8
+ ///
9
+ /// @example
10
+ /// sl-contain(a b c, a)
11
+ /// // true
12
+ ///
13
+ /// @example
14
+ /// sl-contain(a b c, z)
15
+ /// // false
16
+ ///
17
+ /// @return {Bool}
18
+ ///
19
+
20
+ @function sl-contain($list, $value) {
21
+ @return not not index($list, $value);
22
+ }
23
+
24
+ ///
25
+ /// @requires sl-contain
26
+ /// @alias sl-contain
27
+ ///
28
+
29
+ @function sl-include($list, $value) {
30
+ @return sl-contain($list, $value);
31
+ }
@@ -155,7 +155,7 @@ var Abide = function (_Plugin) {
155
155
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
156
156
 
157
157
  this.$element = element;
158
- this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Abide.defaults, this.$element.data(), options);
158
+ this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend(true, {}, Abide.defaults, this.$element.data(), options);
159
159
 
160
160
  this.className = 'Abide'; // ie9 back compat
161
161
  this._init();
@@ -174,8 +174,6 @@ var AccordionMenu = function (_Plugin) {
174
174
  this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, AccordionMenu.defaults, this.$element.data(), options);
175
175
  this.className = 'AccordionMenu'; // ie9 back compat
176
176
 
177
- __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion');
178
-
179
177
  this._init();
180
178
 
181
179
  __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('AccordionMenu', {
@@ -197,6 +195,8 @@ var AccordionMenu = function (_Plugin) {
197
195
  }, {
198
196
  key: '_init',
199
197
  value: function _init() {
198
+ __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion');
199
+
200
200
  var _this = this;
201
201
 
202
202
  this.$element.find('[data-submenu]').not('.is-active').slideUp(0); //.find('a').css('padding-left', '1rem');
@@ -183,7 +183,7 @@ window.Foundation = __WEBPACK_IMPORTED_MODULE_1__foundation_core__["a" /* Founda
183
183
 
184
184
 
185
185
 
186
- var FOUNDATION_VERSION = '6.4.1';
186
+ var FOUNDATION_VERSION = '6.4.3';
187
187
 
188
188
  // Global Foundation object
189
189
  // This is attached to the window, or used as a module for AMD/Browserify
@@ -177,8 +177,6 @@ var Drilldown = function (_Plugin) {
177
177
  this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Drilldown.defaults, this.$element.data(), options);
178
178
  this.className = 'Drilldown'; // ie9 back compat
179
179
 
180
- __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown');
181
-
182
180
  this._init();
183
181
 
184
182
  __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('Drilldown', {
@@ -202,6 +200,8 @@ var Drilldown = function (_Plugin) {
202
200
  }, {
203
201
  key: '_init',
204
202
  value: function _init() {
203
+ __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown');
204
+
205
205
  if (this.options.autoApplyClass) {
206
206
  this.$element.addClass('drilldown');
207
207
  }
@@ -240,7 +240,7 @@ var Drilldown = function (_Plugin) {
240
240
  var $link = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this);
241
241
  var $sub = $link.parent();
242
242
  if (_this.options.parentLink) {
243
- $link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menu-item"></li>');
243
+ $link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menuitem"></li>');
244
244
  }
245
245
  $link.data('savedHref', $link.attr('href')).removeAttr('href').attr('tabindex', 0);
246
246
  $link.children('[data-submenu]').attr({
@@ -461,16 +461,17 @@ var Dropdown = function (_Positionable) {
461
461
  value: function _init() {
462
462
  var $id = this.$element.attr('id');
463
463
 
464
- this.$anchor = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]').length ? __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]') : __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-open="' + $id + '"]');
465
- this.$anchor.attr({
464
+ this.$anchors = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]').length ? __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]') : __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-open="' + $id + '"]');
465
+ this.$anchors.attr({
466
466
  'aria-controls': $id,
467
467
  'data-is-focus': false,
468
468
  'data-yeti-box': $id,
469
469
  'aria-haspopup': true,
470
470
  'aria-expanded': false
471
-
472
471
  });
473
472
 
473
+ this._setCurrentAnchor(this.$anchors.first());
474
+
474
475
  if (this.options.parentClass) {
475
476
  this.$parent = this.$element.parents('.' + this.options.parentClass);
476
477
  } else {
@@ -481,7 +482,7 @@ var Dropdown = function (_Positionable) {
481
482
  'aria-hidden': 'true',
482
483
  'data-yeti-box': $id,
483
484
  'data-resize': $id,
484
- 'aria-labelledby': this.$anchor[0].id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__foundation_util_core__["GetYoDigits"])(6, 'dd-anchor')
485
+ 'aria-labelledby': this.$currentAnchor.id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__foundation_util_core__["GetYoDigits"])(6, 'dd-anchor')
485
486
  });
486
487
  _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_init', this).call(this);
487
488
  this._events();
@@ -501,7 +502,7 @@ var Dropdown = function (_Positionable) {
501
502
  key: '_getDefaultAlignment',
502
503
  value: function _getDefaultAlignment() {
503
504
  // handle legacy float approach
504
- var horizontalPosition = /float-(\S+)/.exec(this.$anchor[0].className);
505
+ var horizontalPosition = /float-(\S+)/.exec(this.$currentAnchor.className);
505
506
  if (horizontalPosition) {
506
507
  return horizontalPosition[1];
507
508
  }
@@ -519,7 +520,21 @@ var Dropdown = function (_Positionable) {
519
520
  }, {
520
521
  key: '_setPosition',
521
522
  value: function _setPosition() {
522
- _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$anchor, this.$element, this.$parent);
523
+ _get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$currentAnchor, this.$element, this.$parent);
524
+ }
525
+
526
+ /**
527
+ * Make it a current anchor.
528
+ * Current anchor as the reference for the position of Dropdown panes.
529
+ * @param {HTML} el - DOM element of the anchor.
530
+ * @function
531
+ * @private
532
+ */
533
+
534
+ }, {
535
+ key: '_setCurrentAnchor',
536
+ value: function _setCurrentAnchor(el) {
537
+ this.$currentAnchor = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(el);
523
538
  }
524
539
 
525
540
  /**
@@ -539,21 +554,27 @@ var Dropdown = function (_Positionable) {
539
554
  'resizeme.zf.trigger': this._setPosition.bind(this)
540
555
  });
541
556
 
557
+ this.$anchors.off('click.zf.trigger').on('click.zf.trigger', function () {
558
+ _this._setCurrentAnchor(this);
559
+ });
560
+
542
561
  if (this.options.hover) {
543
- this.$anchor.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () {
562
+ this.$anchors.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () {
563
+ _this._setCurrentAnchor(this);
564
+
544
565
  var bodyData = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('body').data();
545
566
  if (typeof bodyData.whatinput === 'undefined' || bodyData.whatinput === 'mouse') {
546
567
  clearTimeout(_this.timeout);
547
568
  _this.timeout = setTimeout(function () {
548
569
  _this.open();
549
- _this.$anchor.data('hover', true);
570
+ _this.$anchors.data('hover', true);
550
571
  }, _this.options.hoverDelay);
551
572
  }
552
573
  }).on('mouseleave.zf.dropdown', function () {
553
574
  clearTimeout(_this.timeout);
554
575
  _this.timeout = setTimeout(function () {
555
576
  _this.close();
556
- _this.$anchor.data('hover', false);
577
+ _this.$anchors.data('hover', false);
557
578
  }, _this.options.hoverDelay);
558
579
  });
559
580
  if (this.options.hoverPane) {
@@ -563,19 +584,19 @@ var Dropdown = function (_Positionable) {
563
584
  clearTimeout(_this.timeout);
564
585
  _this.timeout = setTimeout(function () {
565
586
  _this.close();
566
- _this.$anchor.data('hover', false);
587
+ _this.$anchors.data('hover', false);
567
588
  }, _this.options.hoverDelay);
568
589
  });
569
590
  }
570
591
  }
571
- this.$anchor.add(this.$element).on('keydown.zf.dropdown', function (e) {
592
+ this.$anchors.add(this.$element).on('keydown.zf.dropdown', function (e) {
572
593
 
573
594
  var $target = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this),
574
595
  visibleFocusableElements = __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].findFocusable(_this.$element);
575
596
 
576
597
  __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].handleKey(e, 'Dropdown', {
577
598
  open: function () {
578
- if ($target.is(_this.$anchor)) {
599
+ if ($target.is(_this.$anchors)) {
579
600
  _this.open();
580
601
  _this.$element.attr('tabindex', -1).focus();
581
602
  e.preventDefault();
@@ -583,7 +604,7 @@ var Dropdown = function (_Positionable) {
583
604
  },
584
605
  close: function () {
585
606
  _this.close();
586
- _this.$anchor.focus();
607
+ _this.$anchors.focus();
587
608
  }
588
609
  });
589
610
  });
@@ -601,7 +622,7 @@ var Dropdown = function (_Positionable) {
601
622
  var $body = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).not(this.$element),
602
623
  _this = this;
603
624
  $body.off('click.zf.dropdown').on('click.zf.dropdown', function (e) {
604
- if (_this.$anchor.is(e.target) || _this.$anchor.find(e.target).length) {
625
+ if (_this.$anchors.is(e.target) || _this.$anchors.find(e.target).length) {
605
626
  return;
606
627
  }
607
628
  if (_this.$element.find(e.target).length) {
@@ -628,7 +649,7 @@ var Dropdown = function (_Positionable) {
628
649
  * @event Dropdown#closeme
629
650
  */
630
651
  this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id'));
631
- this.$anchor.addClass('hover').attr({ 'aria-expanded': true });
652
+ this.$anchors.addClass('hover').attr({ 'aria-expanded': true });
632
653
  // this.$element/*.show()*/;
633
654
 
634
655
  this.$element.addClass('is-opening');
@@ -671,7 +692,7 @@ var Dropdown = function (_Positionable) {
671
692
  }
672
693
  this.$element.removeClass('is-open').attr({ 'aria-hidden': true });
673
694
 
674
- this.$anchor.removeClass('hover').attr('aria-expanded', false);
695
+ this.$anchors.removeClass('hover').attr('aria-expanded', false);
675
696
 
676
697
  /**
677
698
  * Fires once the dropdown is no longer visible.
@@ -693,7 +714,7 @@ var Dropdown = function (_Positionable) {
693
714
  key: 'toggle',
694
715
  value: function toggle() {
695
716
  if (this.$element.hasClass('is-open')) {
696
- if (this.$anchor.data('hover')) return;
717
+ if (this.$anchors.data('hover')) return;
697
718
  this.close();
698
719
  } else {
699
720
  this.open();
@@ -709,7 +730,7 @@ var Dropdown = function (_Positionable) {
709
730
  key: '_destroy',
710
731
  value: function _destroy() {
711
732
  this.$element.off('.zf.trigger').hide();
712
- this.$anchor.off('.zf.dropdown');
733
+ this.$anchors.off('.zf.dropdown');
713
734
  __WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).off('click.zf.dropdown');
714
735
  }
715
736
  }]);
@@ -970,10 +991,9 @@ Triggers.Listeners.Global = {
970
991
  _this.triggerHandler('close.zf.trigger', [_this]);
971
992
  });
972
993
  }
973
- };
974
994
 
975
- // Global, parses whole document.
976
- Triggers.Initializers.addClosemeListener = function (pluginName) {
995
+ // Global, parses whole document.
996
+ };Triggers.Initializers.addClosemeListener = function (pluginName) {
977
997
  var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'),
978
998
  plugNames = ['dropdown', 'tooltip', 'reveal'];
979
999
 
@@ -178,7 +178,6 @@ var DropdownMenu = function (_Plugin) {
178
178
  this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, DropdownMenu.defaults, this.$element.data(), options);
179
179
  this.className = 'DropdownMenu'; // ie9 back compat
180
180
 
181
- __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown');
182
181
  this._init();
183
182
 
184
183
  __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('DropdownMenu', {
@@ -201,6 +200,8 @@ var DropdownMenu = function (_Plugin) {
201
200
  }, {
202
201
  key: '_init',
203
202
  value: function _init() {
203
+ __WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown');
204
+
204
205
  var subs = this.$element.find('li.is-dropdown-submenu-parent');
205
206
  this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub');
206
207
 
@@ -332,10 +333,8 @@ var DropdownMenu = function (_Plugin) {
332
333
  });
333
334
 
334
335
  var nextSibling = function () {
335
- if (!$element.is(':last-child')) {
336
- $nextElement.children('a:first').focus();
337
- e.preventDefault();
338
- }
336
+ $nextElement.children('a:first').focus();
337
+ e.preventDefault();
339
338
  },
340
339
  prevSibling = function () {
341
340
  $prevElement.children('a:first').focus();