]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixes typos in equalizer
authorChris Oyler <chris@zurb.com>
Mon, 18 Jan 2016 20:46:12 +0000 (12:46 -0800)
committerChris Oyler <chris@zurb.com>
Mon, 18 Jan 2016 20:46:12 +0000 (12:46 -0800)
js/foundation.equalizer.js

index e7d0072f98656e01b9028966584d71d86f198287..3c9ae17af95f8436ed4748adb17de3932f5a5336 100644 (file)
       }
     }
     return tooSmall;
-  }
+  };
   /**
    * A noop version for the plugin
    * @private
         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);
   };
       if (groupsILength<=2) {
         $(groups[i][0][0]).css({'height':'auto'});
         continue;
-      };
+      }
       /**
         * Fires before the heights per row are applied
         * @event Equalizer#preequalizedRow