aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-22 05:33:28 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-22 05:33:28 +0000
commit8fc9e06c46d55d2a8c27d951f5c4ee336b71f38a (patch)
tree6bc70345201bb1318d90c64d98ab1e7756e68331 /src/selector
parent8e105ef9318da2a38019878c6152a4a67d9fceb1 (diff)
downloadjquery-8fc9e06c46d55d2a8c27d951f5c4ee336b71f38a.tar.gz
jquery-8fc9e06c46d55d2a8c27d951f5c4ee336b71f38a.zip
Fixed an issue with child selectors that also have filters.
Diffstat (limited to 'src/selector')
-rw-r--r--src/selector/selector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 7596acdb9..b8f0cb301 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 ) {