Moved to a generic solution for copying methods over for querySelectorAll-using browsers.
authorJohn Resig <jeresig@gmail.com>
Fri, 27 Feb 2009 15:20:59 +0000 (15:20 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 27 Feb 2009 15:20:59 +0000 (15:20 +0000)
src/selector.js

index 3bfc5f5..c189515 100644 (file)
@@ -829,10 +829,9 @@ if ( document.querySelectorAll ) (function(){
                return oldSizzle(query, context, extra, seed);
        };
 
-       Sizzle.find = oldSizzle.find;
-       Sizzle.filter = oldSizzle.filter;
-       Sizzle.selectors = oldSizzle.selectors;
-       Sizzle.matches = oldSizzle.matches;
+       for ( var prop in oldSizzle ) {
+               Sizzle[ prop ] = oldSizzle[ prop ];
+       }
 })();
 
 if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){