aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-22 04:50:30 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-22 04:50:30 +0000
commit31d65e905237376161b8309411296c6ee72ee100 (patch)
treeb78f8b5487367d4470b93ae85e8ee8e81a07d070
parentc39d1a21c61982baf511f6455047f7f055b228da (diff)
downloadjquery-31d65e905237376161b8309411296c6ee72ee100.tar.gz
jquery-31d65e905237376161b8309411296c6ee72ee100.zip
Fixed an issue with child selectors accidentally triggering filter mode.
-rw-r--r--src/selector/selector.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 9f982a85c..6af540ec9 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -160,8 +160,9 @@ jQuery.extend({
});
ret = r;
- t = jQuery.trim( t.replace( re, "" ) );
- foundToken = true;
+ t = t.replace( re, "" );
+ if ( foundToken = t.indexOf(" ") == 0 )
+ continue;
} else {
// Look for pre-defined expression tokens
for ( var i = 0; i < jQuery.token.length; i += 2 ) {