]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix readystate test.
authorJordan Humphreys <jordan@mailyard.net>
Tue, 2 Apr 2013 16:45:16 +0000 (09:45 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Tue, 2 Apr 2013 16:45:16 +0000 (09:45 -0700)
js/foundation/foundation.clearing.js

index 2e24745dde92582b7348d7c68a00cd223716fc55..ccca3ce9340595f2af57549cf6119eea6b776194 100644 (file)
         return;
       }
 
-      if (image[0].complete || image.readyState === 4) {
+      if (image[0].complete || image[0].readyState === 4) {
         loaded();
       } else {
         bindLoad.call(image);