From 1c8c3883a98d7d896efefe92eb0d22b1681e92f1 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 27 Feb 2009 15:20:59 +0000 Subject: [PATCH] Moved to a generic solution for copying methods over for querySelectorAll-using browsers. --- src/selector.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/selector.js b/src/selector.js index 3bfc5f5..c189515 100644 --- a/src/selector.js +++ b/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(){ -- 1.7.10.4