git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c39d1a2
)
Fixed an issue with child selectors accidentally triggering filter mode.
author
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 04:50:30 +0000
(
04:50
+0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 22 Jan 2007 04:50:30 +0000
(
04:50
+0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
9f982a8
..
6af540e
100644
(file)
--- 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 ) {