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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/bower.json +2 -2
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/lib/generators/foundation/templates/_settings.scss +4 -2
  6. data/vendor/assets/js/foundation.abide.js +2 -2
  7. data/vendor/assets/js/foundation.accordion.js +16 -14
  8. data/vendor/assets/js/foundation.accordionMenu.js +20 -23
  9. data/vendor/assets/js/foundation.core.js +6 -8
  10. data/vendor/assets/js/foundation.drilldown.js +4 -4
  11. data/vendor/assets/js/foundation.dropdown.js +5 -3
  12. data/vendor/assets/js/foundation.dropdownMenu.js +8 -9
  13. data/vendor/assets/js/foundation.equalizer.js +6 -6
  14. data/vendor/assets/js/foundation.interchange.js +14 -5
  15. data/vendor/assets/js/foundation.magellan.js +25 -11
  16. data/vendor/assets/js/foundation.offcanvas.js +9 -4
  17. data/vendor/assets/js/foundation.orbit.js +306 -304
  18. data/vendor/assets/js/foundation.responsiveMenu.js +0 -6
  19. data/vendor/assets/js/foundation.reveal.js +63 -27
  20. data/vendor/assets/js/foundation.slider.js +65 -39
  21. data/vendor/assets/js/foundation.tabs.js +6 -7
  22. data/vendor/assets/js/foundation.tooltip.js +3 -3
  23. data/vendor/assets/js/foundation.util.nest.js +2 -3
  24. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +4 -0
  25. data/vendor/assets/js/foundation.util.touch.js +17 -4
  26. data/vendor/assets/js/foundation.util.triggers.js +5 -3
  27. data/vendor/assets/scss/_global.scss +12 -2
  28. data/vendor/assets/scss/components/_accordion.scss +1 -5
  29. data/vendor/assets/scss/components/_button-group.scss +17 -2
  30. data/vendor/assets/scss/components/_button.scss +1 -8
  31. data/vendor/assets/scss/components/_drilldown.scss +4 -4
  32. data/vendor/assets/scss/components/_dropdown-menu.scss +88 -75
  33. data/vendor/assets/scss/components/_dropdown.scss +3 -2
  34. data/vendor/assets/scss/components/_media-object.scss +1 -1
  35. data/vendor/assets/scss/components/_menu.scss +7 -2
  36. data/vendor/assets/scss/components/_off-canvas.scss +0 -4
  37. data/vendor/assets/scss/components/_orbit.scss +1 -1
  38. data/vendor/assets/scss/components/_pagination.scss +6 -2
  39. data/vendor/assets/scss/components/_progress-bar.scss +14 -9
  40. data/vendor/assets/scss/components/_reveal.scss +8 -6
  41. data/vendor/assets/scss/components/_slider.scss +7 -0
  42. data/vendor/assets/scss/components/_table.scss +77 -64
  43. data/vendor/assets/scss/components/_title-bar.scss +4 -0
  44. data/vendor/assets/scss/components/_tooltip.scss +10 -2
  45. data/vendor/assets/scss/components/_top-bar.scss +13 -8
  46. data/vendor/assets/scss/forms/_error.scss +1 -1
  47. data/vendor/assets/scss/forms/_fieldset.scss +1 -0
  48. data/vendor/assets/scss/forms/_forms.scss +8 -9
  49. data/vendor/assets/scss/forms/_input-group.scss +1 -0
  50. data/vendor/assets/scss/forms/_select.scss +3 -1
  51. data/vendor/assets/scss/forms/_text.scss +1 -1
  52. data/vendor/assets/scss/foundation.scss +1 -1
  53. data/vendor/assets/scss/grid/_classes.scss +12 -2
  54. data/vendor/assets/scss/grid/_column.scss +1 -1
  55. data/vendor/assets/scss/grid/_flex-grid.scss +20 -3
  56. data/vendor/assets/scss/grid/_gutter.scss +1 -1
  57. data/vendor/assets/scss/grid/_position.scss +1 -0
  58. data/vendor/assets/scss/grid/_row.scss +1 -0
  59. data/vendor/assets/scss/settings/_settings.scss +4 -2
  60. data/vendor/assets/scss/util/_breakpoint.scss +10 -10
  61. data/vendor/assets/scss/util/_mixins.scss +6 -2
  62. data/vendor/assets/scss/util/_unit.scss +1 -1
  63. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32d87e63ee48a4c8fc20f21027b725b1187542c0
4
- data.tar.gz: 3c39413c053820bbab6eed494bc127d93a3df557
3
+ metadata.gz: d9bda7a24c18e275ca8c07d84d09f6f3b096b510
4
+ data.tar.gz: b0299c7f66885abcc7cee0539f4b8630122d1875
5
5
  SHA512:
6
- metadata.gz: 814a637026a2e4c8b9321154e9212493cb3b8f8a816cc6ff37a9052cf29e484b95c1a54e64233970275e5db8b80b2211aa33001b19c8d7e0561d7e31cb9b834e
7
- data.tar.gz: 0e3ebcf165a5781dd036c1af03d4028aab42bbe144e7f9e432b5d6c108d910c592d65983a7dabfda9cfda594e8789df2ea3b27527cad5200b8ea0af2eece185d
6
+ metadata.gz: 414837e97e06671a367cfa71e09ab6b3e091c5065f64bd94aec170888dd614e4b2b91d6268fbcd47b031d655cf496d2bae81c24f4d632b7bee72b461e84c9cfd
7
+ data.tar.gz: e2e99e0aaa0defbedb06ab1d532a4bf73a75957e00088f17249ada71ca6fa865c259dce5ce5e74c214f60cfa74037075798e55f614372a17eda45d8340e8a3f2
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 ZURB Inc.
1
+ Copyright (c) 2016 ZURB Inc.
2
2
 
3
3
  MIT License
4
4
 
data/bower.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "foundation-rails",
3
- "version": "6.1.1.0",
3
+ "version": "6.1.2.0",
4
4
  "dependencies": {
5
- "foundation-sites": "6.1.1",
5
+ "foundation-sites": "6.1.2",
6
6
  "motion-ui": "1.1.1"
7
7
  }
8
8
  }
@@ -1,5 +1,5 @@
1
1
  module Foundation
2
2
  module Rails
3
- VERSION = "6.1.1.3"
3
+ VERSION = "6.1.2.0"
4
4
  end
5
5
  end
@@ -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: 16rem;
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-link-color: $primary-color;
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[0]);
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 == 0) {
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('.has-submenu');
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.accordionmenu').on('click.zf.accordionmenu', function(e) {
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('.has-submenu').attr({'aria-expanded': true, 'aria-selected': true});
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
- * Fires when the menu is done collapsing up.
244
- * @event AccordionMenu#up
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.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
- * Creates a pointer to an instance of a Plugin within the Foundation._activePlugins object.
49
- * Sets the `[data-pluginName="uniqueIdHere"]`, allowing easy access to any plugin's internal methods.
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 pointer for an instance of a Plugin from the Foundation._activePlugins obj.
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.has-submenu');
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-sub.is-active').addClass('is-closing');
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('.has-submenu')
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-sub').removeClass('is-active is-closing is-drilldown-sub')
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 an accordion menu.
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 true
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(/(top|left|right)/g);
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
- // clearTimeout(delay);
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-selected': true, 'aria-expanded': true});
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 i = 0, len = groups.length; i < len; i++) {
186
- var heights = $(groups[i]).map(function () { return this[1]}).get();
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[i].push(max);
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