]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix outerHeight for jQuery 1.8.0 version 4975/head
authorakodde <akodde@users.noreply.github.com>
Tue, 15 Apr 2014 10:27:14 +0000 (12:27 +0200)
committerakodde <akodde@users.noreply.github.com>
Tue, 15 Apr 2014 10:27:14 +0000 (12:27 +0200)
The parameter 'includeMargin' is set to false by default (https://api.jquery.com/outerHeight/). However due to a bug in jQuery 1.8.0 the outerHeight returns an object instead of an integer: http://bugs.jquery.com/ticket/12159

Adding 'false' fixes the equalizer for jQuery 1.8.0 and wouldn't do harm as it is set to false by default.

js/foundation/foundation.equalizer.js

index 6846a7aa719c771a64dbfd5eaf721f1219ca428b..4b17bb4ba0da97b13df245c3261bec1370f63f18 100644 (file)
@@ -42,7 +42,7 @@
       });
       if (isStacked) return;
 
-      var heights = vals.map(function(){ return $(this).outerHeight() }).get();
+      var heights = vals.map(function(){ return $(this).outerHeight(false) }).get();
       if (settings.use_tallest) {
         var max = Math.max.apply(null, heights);
         vals.css('height', max);