foundation-rails 6.1.1.3 → 6.1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +4 -2
- data/vendor/assets/js/foundation.abide.js +2 -2
- data/vendor/assets/js/foundation.accordion.js +16 -14
- data/vendor/assets/js/foundation.accordionMenu.js +20 -23
- data/vendor/assets/js/foundation.core.js +6 -8
- data/vendor/assets/js/foundation.drilldown.js +4 -4
- data/vendor/assets/js/foundation.dropdown.js +5 -3
- data/vendor/assets/js/foundation.dropdownMenu.js +8 -9
- data/vendor/assets/js/foundation.equalizer.js +6 -6
- data/vendor/assets/js/foundation.interchange.js +14 -5
- data/vendor/assets/js/foundation.magellan.js +25 -11
- data/vendor/assets/js/foundation.offcanvas.js +9 -4
- data/vendor/assets/js/foundation.orbit.js +306 -304
- data/vendor/assets/js/foundation.responsiveMenu.js +0 -6
- data/vendor/assets/js/foundation.reveal.js +63 -27
- data/vendor/assets/js/foundation.slider.js +65 -39
- data/vendor/assets/js/foundation.tabs.js +6 -7
- data/vendor/assets/js/foundation.tooltip.js +3 -3
- data/vendor/assets/js/foundation.util.nest.js +2 -3
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +4 -0
- data/vendor/assets/js/foundation.util.touch.js +17 -4
- data/vendor/assets/js/foundation.util.triggers.js +5 -3
- data/vendor/assets/scss/_global.scss +12 -2
- data/vendor/assets/scss/components/_accordion.scss +1 -5
- data/vendor/assets/scss/components/_button-group.scss +17 -2
- data/vendor/assets/scss/components/_button.scss +1 -8
- data/vendor/assets/scss/components/_drilldown.scss +4 -4
- data/vendor/assets/scss/components/_dropdown-menu.scss +88 -75
- data/vendor/assets/scss/components/_dropdown.scss +3 -2
- data/vendor/assets/scss/components/_media-object.scss +1 -1
- data/vendor/assets/scss/components/_menu.scss +7 -2
- data/vendor/assets/scss/components/_off-canvas.scss +0 -4
- data/vendor/assets/scss/components/_orbit.scss +1 -1
- data/vendor/assets/scss/components/_pagination.scss +6 -2
- data/vendor/assets/scss/components/_progress-bar.scss +14 -9
- data/vendor/assets/scss/components/_reveal.scss +8 -6
- data/vendor/assets/scss/components/_slider.scss +7 -0
- data/vendor/assets/scss/components/_table.scss +77 -64
- data/vendor/assets/scss/components/_title-bar.scss +4 -0
- data/vendor/assets/scss/components/_tooltip.scss +10 -2
- data/vendor/assets/scss/components/_top-bar.scss +13 -8
- data/vendor/assets/scss/forms/_error.scss +1 -1
- data/vendor/assets/scss/forms/_fieldset.scss +1 -0
- data/vendor/assets/scss/forms/_forms.scss +8 -9
- data/vendor/assets/scss/forms/_input-group.scss +1 -0
- data/vendor/assets/scss/forms/_select.scss +3 -1
- data/vendor/assets/scss/forms/_text.scss +1 -1
- data/vendor/assets/scss/foundation.scss +1 -1
- data/vendor/assets/scss/grid/_classes.scss +12 -2
- data/vendor/assets/scss/grid/_column.scss +1 -1
- data/vendor/assets/scss/grid/_flex-grid.scss +20 -3
- data/vendor/assets/scss/grid/_gutter.scss +1 -1
- data/vendor/assets/scss/grid/_position.scss +1 -0
- data/vendor/assets/scss/grid/_row.scss +1 -0
- data/vendor/assets/scss/settings/_settings.scss +4 -2
- data/vendor/assets/scss/util/_breakpoint.scss +10 -10
- data/vendor/assets/scss/util/_mixins.scss +6 -2
- data/vendor/assets/scss/util/_unit.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9bda7a24c18e275ca8c07d84d09f6f3b096b510
|
4
|
+
data.tar.gz: b0299c7f66885abcc7cee0539f4b8630122d1875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 414837e97e06671a367cfa71e09ab6b3e091c5065f64bd94aec170888dd614e4b2b91d6268fbcd47b031d655cf496d2bae81c24f4d632b7bee72b461e84c9cfd
|
7
|
+
data.tar.gz: e2e99e0aaa0defbedb06ab1d532a4bf73a75957e00088f17249ada71ca6fa865c259dce5ce5e74c214f60cfa74037075798e55f614372a17eda45d8340e8a3f2
|
data/LICENSE.txt
CHANGED
data/bower.json
CHANGED
@@ -287,7 +287,7 @@ $drilldown-background: $white;
|
|
287
287
|
|
288
288
|
$dropdown-padding: 1rem;
|
289
289
|
$dropdown-border: 1px solid $medium-gray;
|
290
|
-
$dropdown-font-size:
|
290
|
+
$dropdown-font-size: 1rem;
|
291
291
|
$dropdown-width: 300px;
|
292
292
|
$dropdown-radius: $global-radius;
|
293
293
|
$dropdown-sizes: (
|
@@ -528,6 +528,8 @@ $titlebar-icon-spacing: 0.25rem;
|
|
528
528
|
// 34. Tooltip
|
529
529
|
// -----------
|
530
530
|
|
531
|
+
$has-tip-font-weight: $global-weight-bold;
|
532
|
+
$has-tip-border-bottom: dotted 1px $dark-gray;
|
531
533
|
$tooltip-background-color: $black;
|
532
534
|
$tooltip-color: $white;
|
533
535
|
$tooltip-padding: 0.75rem;
|
@@ -542,5 +544,5 @@ $tooltip-radius: $global-radius;
|
|
542
544
|
|
543
545
|
$topbar-padding: 0.5rem;
|
544
546
|
$topbar-background: $light-gray;
|
545
|
-
$topbar-
|
547
|
+
$topbar-title-spacing: 1rem;
|
546
548
|
$topbar-input-width: 200px;
|
@@ -190,7 +190,7 @@
|
|
190
190
|
* @returns {Object} jQuery object with the selector.
|
191
191
|
*/
|
192
192
|
Abide.prototype.findFormError = function($el){
|
193
|
-
var $error = $el.siblings(this.options.formErrorSelector)
|
193
|
+
var $error = $el.siblings(this.options.formErrorSelector);
|
194
194
|
if(!$error.length){
|
195
195
|
$error = $el.parent().find(this.options.formErrorSelector);
|
196
196
|
}
|
@@ -291,7 +291,7 @@
|
|
291
291
|
* @event Abide#valid
|
292
292
|
* @event Abide#invalid
|
293
293
|
*/
|
294
|
-
$el.trigger(message, $el
|
294
|
+
$el.trigger(message, [$el]);
|
295
295
|
|
296
296
|
return goodToGo;
|
297
297
|
};
|
@@ -12,6 +12,7 @@
|
|
12
12
|
* @class
|
13
13
|
* @fires Accordion#init
|
14
14
|
* @param {jQuery} element - jQuery object to make into an accordion.
|
15
|
+
* @param {Object} options - a plain object with settings to override the default options.
|
15
16
|
*/
|
16
17
|
function Accordion(element, options){
|
17
18
|
this.$element = element;
|
@@ -56,7 +57,7 @@
|
|
56
57
|
Accordion.prototype._init = function() {
|
57
58
|
this.$element.attr('role', 'tablist');
|
58
59
|
this.$tabs = this.$element.children('li');
|
59
|
-
if (this.$tabs.length
|
60
|
+
if (this.$tabs.length === 0) {
|
60
61
|
this.$tabs = this.$element.children('[data-accordion-item]');
|
61
62
|
}
|
62
63
|
this.$tabs.each(function(idx, el){
|
@@ -162,7 +163,13 @@
|
|
162
163
|
.parent().addClass('is-active');
|
163
164
|
|
164
165
|
// Foundation.Move(_this.options.slideSpeed, $target, function(){
|
165
|
-
$target.slideDown(_this.options.slideSpeed)
|
166
|
+
$target.slideDown(_this.options.slideSpeed, function () {
|
167
|
+
/**
|
168
|
+
* Fires when the tab is done opening.
|
169
|
+
* @event Accordion#down
|
170
|
+
*/
|
171
|
+
_this.$element.trigger('down.zf.accordion', [$target]);
|
172
|
+
});
|
166
173
|
// });
|
167
174
|
|
168
175
|
// if(!firstTime){
|
@@ -172,11 +179,6 @@
|
|
172
179
|
'aria-expanded': true,
|
173
180
|
'aria-selected': true
|
174
181
|
});
|
175
|
-
/**
|
176
|
-
* Fires when the tab is done opening.
|
177
|
-
* @event Accordion#down
|
178
|
-
*/
|
179
|
-
this.$element.trigger('down.zf.accordion', [$target]);
|
180
182
|
};
|
181
183
|
|
182
184
|
/**
|
@@ -195,7 +197,13 @@
|
|
195
197
|
}
|
196
198
|
|
197
199
|
// Foundation.Move(this.options.slideSpeed, $target, function(){
|
198
|
-
$target.slideUp(_this.options.slideSpeed)
|
200
|
+
$target.slideUp(_this.options.slideSpeed, function () {
|
201
|
+
/**
|
202
|
+
* Fires when the tab is done collapsing up.
|
203
|
+
* @event Accordion#up
|
204
|
+
*/
|
205
|
+
_this.$element.trigger('up.zf.accordion', [$target]);
|
206
|
+
});
|
199
207
|
// });
|
200
208
|
|
201
209
|
$target.attr('aria-hidden', true)
|
@@ -205,12 +213,6 @@
|
|
205
213
|
'aria-expanded': false,
|
206
214
|
'aria-selected': false
|
207
215
|
});
|
208
|
-
|
209
|
-
/**
|
210
|
-
* Fires when the tab is done collapsing up.
|
211
|
-
* @event Accordion#up
|
212
|
-
*/
|
213
|
-
this.$element.trigger('up.zf.accordion', [$target]);
|
214
216
|
};
|
215
217
|
|
216
218
|
/**
|
@@ -63,7 +63,7 @@
|
|
63
63
|
'aria-multiselectable': this.options.multiOpen
|
64
64
|
});
|
65
65
|
|
66
|
-
this.$menuLinks = this.$element.find('.
|
66
|
+
this.$menuLinks = this.$element.find('.is-accordion-submenu-parent');
|
67
67
|
this.$menuLinks.each(function(){
|
68
68
|
var linkId = this.id || Foundation.GetYoDigits(6, 'acc-menu-link'),
|
69
69
|
$elem = $(this),
|
@@ -73,7 +73,6 @@
|
|
73
73
|
$elem.attr({
|
74
74
|
'aria-controls': subId,
|
75
75
|
'aria-expanded': isActive,
|
76
|
-
'aria-selected': false,
|
77
76
|
'role': 'tab',
|
78
77
|
'id': linkId
|
79
78
|
});
|
@@ -105,7 +104,7 @@
|
|
105
104
|
var $submenu = $(this).children('[data-submenu]');
|
106
105
|
|
107
106
|
if ($submenu.length) {
|
108
|
-
$(this).children('a').off('click.zf.
|
107
|
+
$(this).children('a').off('click.zf.accordionMenu').on('click.zf.accordionMenu', function(e) {
|
109
108
|
e.preventDefault();
|
110
109
|
|
111
110
|
_this.toggle($submenu);
|
@@ -209,16 +208,17 @@
|
|
209
208
|
}
|
210
209
|
|
211
210
|
$target.addClass('is-active').attr({'aria-hidden': false})
|
212
|
-
.parent('.
|
211
|
+
.parent('.is-accordion-submenu-parent').attr({'aria-expanded': true});
|
213
212
|
|
214
213
|
Foundation.Move(this.options.slideSpeed, $target, function(){
|
215
|
-
$target.slideDown(_this.options.slideSpeed)
|
214
|
+
$target.slideDown(_this.options.slideSpeed, function () {
|
215
|
+
/**
|
216
|
+
* Fires when the menu is done opening.
|
217
|
+
* @event AccordionMenu#down
|
218
|
+
*/
|
219
|
+
_this.$element.trigger('down.zf.accordionMenu', [$target]);
|
220
|
+
});
|
216
221
|
});
|
217
|
-
/**
|
218
|
-
* Fires when the menu is done collapsing up.
|
219
|
-
* @event AccordionMenu#down
|
220
|
-
*/
|
221
|
-
this.$element.trigger('down.zf.accordionMenu', [$target]);
|
222
222
|
};
|
223
223
|
|
224
224
|
/**
|
@@ -229,21 +229,18 @@
|
|
229
229
|
AccordionMenu.prototype.up = function($target) {
|
230
230
|
var _this = this;
|
231
231
|
Foundation.Move(this.options.slideSpeed, $target, function(){
|
232
|
-
$target.slideUp(_this.options.slideSpeed)
|
232
|
+
$target.slideUp(_this.options.slideSpeed, function () {
|
233
|
+
/**
|
234
|
+
* Fires when the menu is done collapsing up.
|
235
|
+
* @event AccordionMenu#up
|
236
|
+
*/
|
237
|
+
_this.$element.trigger('up.zf.accordionMenu', [$target]);
|
238
|
+
});
|
233
239
|
});
|
234
|
-
$target.attr('aria-hidden', true)
|
235
|
-
.find('[data-submenu]').slideUp(0).attr('aria-hidden', true).end()
|
236
|
-
.parent('.has-submenu')
|
237
|
-
.attr({'aria-expanded': false, 'aria-selected': false});
|
238
|
-
// $target.slideUp(this.options.slideSpeed, function() {
|
239
|
-
// $target.find('[data-submenu]').slideUp(0).attr('aria-hidden', true);
|
240
|
-
// }).attr('aria-hidden', true).parent('.has-submenu').attr({'aria-expanded': false, 'aria-selected': false});
|
241
240
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
*/
|
246
|
-
this.$element.trigger('up.zf.accordionMenu', [$target]);
|
241
|
+
var $menus = $target.find('[data-submenu]').slideUp(0).addBack().attr('aria-hidden', true);
|
242
|
+
|
243
|
+
$menus.parent('.is-accordion-submenu-parent').attr('aria-expanded', false);
|
247
244
|
};
|
248
245
|
|
249
246
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
!function($) {
|
2
2
|
"use strict";
|
3
3
|
|
4
|
-
var FOUNDATION_VERSION = '6.1.
|
4
|
+
var FOUNDATION_VERSION = '6.1.2';
|
5
5
|
|
6
6
|
// Global Foundation object
|
7
7
|
// This is attached to the window, or used as a module for AMD/Browserify
|
@@ -17,10 +17,6 @@ var Foundation = {
|
|
17
17
|
* Stores generated unique ids for plugin instances
|
18
18
|
*/
|
19
19
|
_uuids: [],
|
20
|
-
/**
|
21
|
-
* Stores currently active plugins.
|
22
|
-
*/
|
23
|
-
_activePlugins: {},
|
24
20
|
|
25
21
|
/**
|
26
22
|
* Returns a boolean for RTL support
|
@@ -45,10 +41,11 @@ var Foundation = {
|
|
45
41
|
},
|
46
42
|
/**
|
47
43
|
* @function
|
48
|
-
*
|
49
|
-
*
|
44
|
+
* Populates the _uuids array with pointers to each individual plugin instance.
|
45
|
+
* Adds the `zfPlugin` data-attribute to programmatically created plugins to allow use of $(selector).foundation(method) calls.
|
50
46
|
* Also fires the initialization event for each plugin, consolidating repeditive code.
|
51
47
|
* @param {Object} plugin - an instance of a plugin, usually `this` in context.
|
48
|
+
* @param {String} name - the name of the plugin, passed as a camelCased string.
|
52
49
|
* @fires Plugin#init
|
53
50
|
*/
|
54
51
|
registerPlugin: function(plugin, name){
|
@@ -69,7 +66,8 @@ var Foundation = {
|
|
69
66
|
},
|
70
67
|
/**
|
71
68
|
* @function
|
72
|
-
* Removes the
|
69
|
+
* Removes the plugins uuid from the _uuids array.
|
70
|
+
* Removes the zfPlugin data attribute, as well as the data-plugin-name attribute.
|
73
71
|
* Also fires the destroyed event for the plugin, consolidating repeditive code.
|
74
72
|
* @param {Object} plugin - an instance of a plugin, usually `this` in context.
|
75
73
|
* @fires Plugin#destroyed
|
@@ -61,7 +61,7 @@
|
|
61
61
|
* @private
|
62
62
|
*/
|
63
63
|
Drilldown.prototype._init = function(){
|
64
|
-
this.$submenuAnchors = this.$element.find('li.
|
64
|
+
this.$submenuAnchors = this.$element.find('li.is-drilldown-submenu-parent');
|
65
65
|
this.$submenus = this.$submenuAnchors.children('[data-submenu]');
|
66
66
|
this.$menuItems = this.$element.find('li').not('.js-drilldown-back').attr('role', 'menuitem');
|
67
67
|
|
@@ -207,7 +207,7 @@
|
|
207
207
|
* @fires Drilldown#closed
|
208
208
|
*/
|
209
209
|
Drilldown.prototype._hideAll = function(){
|
210
|
-
var $elem = this.$element.find('.is-drilldown-
|
210
|
+
var $elem = this.$element.find('.is-drilldown-submenu.is-active').addClass('is-closing');
|
211
211
|
$elem.one(Foundation.transitionend($elem), function(e){
|
212
212
|
$elem.removeClass('is-active is-closing');
|
213
213
|
});
|
@@ -240,7 +240,7 @@
|
|
240
240
|
*/
|
241
241
|
Drilldown.prototype._menuLinkEvents = function(){
|
242
242
|
var _this = this;
|
243
|
-
this.$menuItems.not('.
|
243
|
+
this.$menuItems.not('.is-drilldown-submenu-parent')
|
244
244
|
.off('click.zf.drilldown')
|
245
245
|
.on('click.zf.drilldown', function(e){
|
246
246
|
// e.stopImmediatePropagation();
|
@@ -306,7 +306,7 @@
|
|
306
306
|
Foundation.Nest.Burn(this.$element, 'drilldown');
|
307
307
|
this.$element.unwrap()
|
308
308
|
.find('.js-drilldown-back').remove()
|
309
|
-
.end().find('.is-active, .is-closing, .is-drilldown-
|
309
|
+
.end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu')
|
310
310
|
.end().find('[data-submenu]').removeAttr('aria-hidden tabindex role')
|
311
311
|
.off('.zf.drilldown').end().off('zf.drilldown');
|
312
312
|
this.$element.find('a').each(function(){
|
@@ -3,13 +3,15 @@
|
|
3
3
|
* @module foundation.dropdown
|
4
4
|
* @requires foundation.util.keyboard
|
5
5
|
* @requires foundation.util.box
|
6
|
+
* @requires foundation.util.triggers
|
6
7
|
*/
|
7
8
|
!function($, Foundation){
|
8
9
|
'use strict';
|
9
10
|
/**
|
10
11
|
* Creates a new instance of a dropdown.
|
11
12
|
* @class
|
12
|
-
* @param {jQuery} element - jQuery object to make into
|
13
|
+
* @param {jQuery} element - jQuery object to make into a dropdown.
|
14
|
+
* Object should be of the dropdown panel, rather than its anchor.
|
13
15
|
* @param {Object} options - Overrides to the default plugin settings.
|
14
16
|
*/
|
15
17
|
function Dropdown(element, options){
|
@@ -79,7 +81,7 @@
|
|
79
81
|
/**
|
80
82
|
* Allows a click on the body to close the dropdown.
|
81
83
|
* @option
|
82
|
-
* @example
|
84
|
+
* @example false
|
83
85
|
*/
|
84
86
|
closeOnClick: false
|
85
87
|
};
|
@@ -118,7 +120,7 @@
|
|
118
120
|
* @returns {String} position - string value of a position class.
|
119
121
|
*/
|
120
122
|
Dropdown.prototype.getPositionClass = function(){
|
121
|
-
var position = this.$element[0].className.match(
|
123
|
+
var position = this.$element[0].className.match(/\b(top|left|right)\b/g);
|
122
124
|
position = position ? position[0] : '';
|
123
125
|
return position;
|
124
126
|
};
|
@@ -114,7 +114,7 @@
|
|
114
114
|
this.isVert = this.$element.hasClass(this.options.verticalClass);
|
115
115
|
this.$tabs.find('ul.is-dropdown-submenu').addClass(this.options.verticalClass);
|
116
116
|
|
117
|
-
if(this.$element.hasClass(this.options.rightClass) || this.options.alignment === 'right'){
|
117
|
+
if(this.$element.hasClass(this.options.rightClass) || this.options.alignment === 'right' || Foundation.rtl()){
|
118
118
|
this.options.alignment = 'right';
|
119
119
|
subs.addClass('is-left-arrow opens-left');
|
120
120
|
}else{
|
@@ -135,8 +135,7 @@
|
|
135
135
|
DropdownMenu.prototype._events = function(){
|
136
136
|
var _this = this,
|
137
137
|
hasTouch = 'ontouchstart' in window || (typeof window.ontouchstart !== 'undefined'),
|
138
|
-
parClass = 'is-dropdown-submenu-parent'
|
139
|
-
delay;
|
138
|
+
parClass = 'is-dropdown-submenu-parent';
|
140
139
|
|
141
140
|
if(this.options.clickOpen || hasTouch){
|
142
141
|
this.$menuItems.on('click.zf.dropdownmenu touchstart.zf.dropdownmenu', function(e){
|
@@ -170,8 +169,8 @@
|
|
170
169
|
hasSub = $elem.hasClass(parClass);
|
171
170
|
|
172
171
|
if(hasSub){
|
173
|
-
clearTimeout(delay);
|
174
|
-
delay = setTimeout(function(){
|
172
|
+
clearTimeout(_this.delay);
|
173
|
+
_this.delay = setTimeout(function(){
|
175
174
|
_this._show($elem.children('.is-dropdown-submenu'));
|
176
175
|
}, _this.options.hoverDelay);
|
177
176
|
}
|
@@ -181,8 +180,8 @@
|
|
181
180
|
if(hasSub && _this.options.autoclose){
|
182
181
|
if($elem.attr('data-is-click') === 'true' && _this.options.clickOpen){ return false; }
|
183
182
|
|
184
|
-
|
185
|
-
delay = setTimeout(function(){
|
183
|
+
clearTimeout(_this.delay);
|
184
|
+
_this.delay = setTimeout(function(){
|
186
185
|
_this._hide($elem);
|
187
186
|
}, _this.options.closingTime);
|
188
187
|
}
|
@@ -310,7 +309,7 @@
|
|
310
309
|
this._hide($sibs, idx);
|
311
310
|
$sub.css('visibility', 'hidden').addClass('js-dropdown-active').attr({'aria-hidden': false})
|
312
311
|
.parent('li.is-dropdown-submenu-parent').addClass('is-active')
|
313
|
-
.attr({'aria-
|
312
|
+
.attr({'aria-expanded': true});
|
314
313
|
var clear = Foundation.Box.ImNotTouchingYou($sub, null, true);
|
315
314
|
if(!clear){
|
316
315
|
var oldClass = this.options.alignment === 'left' ? '-right' : '-left',
|
@@ -353,7 +352,6 @@
|
|
353
352
|
|
354
353
|
if(somethingToClose){
|
355
354
|
$toClose.find('li.is-active').add($toClose).attr({
|
356
|
-
'aria-selected': false,
|
357
355
|
'aria-expanded': false,
|
358
356
|
'data-is-click': false
|
359
357
|
}).removeClass('is-active');
|
@@ -383,6 +381,7 @@
|
|
383
381
|
DropdownMenu.prototype.destroy = function(){
|
384
382
|
this.$menuItems.off('.zf.dropdownmenu').removeAttr('data-is-click')
|
385
383
|
.removeClass('is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner');
|
384
|
+
$(document.body).off('.zf.dropdownmenu');
|
386
385
|
Foundation.Nest.Burn(this.$element, 'dropdown');
|
387
386
|
Foundation.unregisterPlugin(this);
|
388
387
|
};
|
@@ -114,7 +114,7 @@
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
return tooSmall;
|
117
|
-
}
|
117
|
+
};
|
118
118
|
/**
|
119
119
|
* A noop version for the plugin
|
120
120
|
* @private
|
@@ -178,14 +178,14 @@
|
|
178
178
|
group++;
|
179
179
|
groups[group] = [];
|
180
180
|
lastElTopOffset=elOffsetTop;
|
181
|
-
}
|
181
|
+
}
|
182
182
|
groups[group].push([this.$watched[i],this.$watched[i].offsetHeight]);
|
183
183
|
}
|
184
184
|
|
185
|
-
for (var
|
186
|
-
var heights = $(groups[
|
185
|
+
for (var j = 0, ln = groups.length; j < ln; j++) {
|
186
|
+
var heights = $(groups[j]).map(function(){ return this[1]; }).get();
|
187
187
|
var max = Math.max.apply(null, heights);
|
188
|
-
groups[
|
188
|
+
groups[j].push(max);
|
189
189
|
}
|
190
190
|
cb(groups);
|
191
191
|
};
|
@@ -230,7 +230,7 @@
|
|
230
230
|
if (groupsILength<=2) {
|
231
231
|
$(groups[i][0][0]).css({'height':'auto'});
|
232
232
|
continue;
|
233
|
-
}
|
233
|
+
}
|
234
234
|
/**
|
235
235
|
* Fires before the heights per row are applied
|
236
236
|
* @event Equalizer#preequalizedRow
|