Moved to a generic solution for copying methods over for querySelectorAll-using browsers.

This commit is contained in:
John Resig 2009-02-27 15:20:59 +00:00
parent 985856b823
commit 1c8c3883a9

View 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(){