git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed CRLF end of lines to just LF. Other than that there were no changes in this...
[jquery.git]
/
src
/
selector.js
diff --git
a/src/selector.js
b/src/selector.js
index
6e916a2
..
51f165a
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-321,10
+321,9
@@
jQuery.extend({
// keeping it out of the expression list
if ( m[1] == ":" && m[2] == "not" )
// optimize if only one selector found (most common case)
// keeping it out of the expression list
if ( m[1] == ":" && m[2] == "not" )
// optimize if only one selector found (most common case)
- if ( /^.[^:#\[\.]*$/.test(m[3]) )
- r = jQuery.filter(m[3], r, true).r;
- else
- r = jQuery.removeFromArray(jQuery.multiFilter(m[3], r), r);
+ r = isSimple.test( m[3] ) ?
+ jQuery.filter(m[3], r, true).r :
+ jQuery( r ).not( m[3] );
// We can get a big speed boost by filtering by class here
else if ( m[1] == "." )
// We can get a big speed boost by filtering by class here
else if ( m[1] == "." )