]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
remove dependence on CSS3 :not selector 4105/head
authorcmcnulty <cmcnulty@kznf.com>
Thu, 9 Jan 2014 04:44:18 +0000 (22:44 -0600)
committercmcnulty <cmcnulty@kznf.com>
Thu, 9 Jan 2014 04:44:18 +0000 (22:44 -0600)
This change is made necessary because not every browser that implements querySelectorAll implements all of CSS selectors

js/foundation/foundation.interchange.js

index d227a21843da1e81577450a7716c129bd77d5cb5..23be89137cb9d33272d757b78f9cd60fbcb897a4 100644 (file)
     },
 
     update_nodes : function () {
-      var nodes = this.S('[' + this.data_attr + ']:not(img)'),
+      var nodes = this.S('[' + this.data_attr + ']').not('img'),
           count = nodes.length,
           loaded_count = 0,
           data_attr = this.data_attr;
 
   };
 
-}(jQuery, this, this.document));
\ No newline at end of file
+}(jQuery, this, this.document));