Skip to content
Permalink
Browse files

Moved to a generic solution for copying methods over for querySelecto…

…rAll-using browsers.
  • Loading branch information...
jeresig committed Feb 27, 2009
1 parent 985856b commit 1c8c3883a98d7d896efefe92eb0d22b1681e92f1
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/selector.js
@@ -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(){

0 comments on commit 1c8c388

Please sign in to comment.
You can’t perform that action at this time.