From 8a618ef244fe8cd7a2c6391e3eb64dbae8e8a975 Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Mon, 18 Jan 2016 12:46:12 -0800 Subject: [PATCH] fixes typos in equalizer --- js/foundation.equalizer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/foundation.equalizer.js b/js/foundation.equalizer.js index e7d0072f9..3c9ae17af 100644 --- a/js/foundation.equalizer.js +++ b/js/foundation.equalizer.js @@ -114,7 +114,7 @@ } } return tooSmall; - } + }; /** * A noop version for the plugin * @private @@ -178,14 +178,14 @@ group++; groups[group] = []; lastElTopOffset=elOffsetTop; - }; + } groups[group].push([this.$watched[i],this.$watched[i].offsetHeight]); } - for (var i = 0, len = groups.length; i < len; i++) { - var heights = $(groups[i]).map(function () { return this[1]}).get(); + for (var j = 0, ln = groups.length; j < ln; j++) { + var heights = $(groups[j]).map(function(){ return this[1]; }).get(); var max = Math.max.apply(null, heights); - groups[i].push(max); + groups[j].push(max); } cb(groups); }; @@ -230,7 +230,7 @@ if (groupsILength<=2) { $(groups[i][0][0]).css({'height':'auto'}); continue; - }; + } /** * Fires before the heights per row are applied * @event Equalizer#preequalizedRow -- 2.47.2