X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fselector.js;h=64222c3f6638b144159f76cf7bcdc21c75033035;hb=97e134fe80a734b97170bf43c9459511f4e165c7;hp=c6fc0255afcd4a783592c51806ca7df0c2ffc19e;hpb=48e9a3999596c2ee1f4470a78637de8f27e3b219;p=jquery.git diff --git a/src/selector.js b/src/selector.js index c6fc025..64222c3 100644 --- a/src/selector.js +++ b/src/selector.js @@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = { } else if ( name === "not" ) { var not = match[3]; - for ( i = 0, l = not.length; i < l; i++ ) { + for ( var i = 0, l = not.length; i < l; i++ ) { if ( not[i] === elem ) { return false; } @@ -661,7 +661,7 @@ for ( var type in Expr.match ) { } var makeArray = function(array, results) { - array = Array.prototype.slice.call( array ); + array = Array.prototype.slice.call( array, 0 ); if ( results ) { results.push.apply( results, array ); @@ -674,7 +674,7 @@ var makeArray = function(array, results) { // Perform a simple check to determine if the browser is capable of // converting a NodeList to an array using builtin methods. try { - Array.prototype.slice.call( document.documentElement.childNodes ); + Array.prototype.slice.call( document.documentElement.childNodes, 0 ); // Provide a fallback method if it does not work } catch(e){