Fixed an issue with child selectors that also have filters.
authorJohn Resig <jeresig@gmail.com>
Mon, 22 Jan 2007 05:33:28 +0000 (05:33 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 22 Jan 2007 05:33:28 +0000 (05:33 +0000)
src/selector/selector.js

index 7596acd..b8f0cb3 100644 (file)
@@ -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 ) {