From: cmcnulty Date: Thu, 9 Jan 2014 04:44:18 +0000 (-0600) Subject: remove dependence on CSS3 :not selector X-Git-Tag: 5.0.3^2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4105%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git remove dependence on CSS3 :not selector This change is made necessary because not every browser that implements querySelectorAll implements all of CSS selectors --- diff --git a/js/foundation/foundation.interchange.js b/js/foundation/foundation.interchange.js index d227a2184..23be89137 100644 --- a/js/foundation/foundation.interchange.js +++ b/js/foundation/foundation.interchange.js @@ -179,7 +179,7 @@ }, 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; @@ -302,4 +302,4 @@ }; -}(jQuery, this, this.document)); \ No newline at end of file +}(jQuery, this, this.document));