From: John Resig Date: Mon, 22 Jan 2007 05:33:28 +0000 (+0000) Subject: Fixed an issue with child selectors that also have filters. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=8fc9e06c46d55d2a8c27d951f5c4ee336b71f38a;p=jquery.git Fixed an issue with child selectors that also have filters. --- diff --git a/src/selector/selector.js b/src/selector/selector.js index 7596acd..b8f0cb3 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -161,8 +161,8 @@ jQuery.extend({ ret = r; t = t.replace( re, "" ); - if ( foundToken = t.indexOf(" ") == 0 ) - continue; + if ( t.indexOf(" ") == 0 ) continue; + foundToken = true; } else { // Look for pre-defined expression tokens for ( var i = 0; i < jQuery.token.length; i += 2 ) {