git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed #2069. The ready helper and shortcuts act the same. You can also still bind...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
c7f30d6
..
1ec8de0
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-353,7
+353,10
@@
jQuery.fn = jQuery.prototype = {
selector = jQuery.multiFilter( selector, this );
return this.filter(function() {
selector = jQuery.multiFilter( selector, this );
return this.filter(function() {
- return jQuery.inArray( this, selector ) < 0;
+ // check to see if the selector is array-like otherwise assume it is just a DOM element
+ return ( selector.length && selector[selector.length - 1] !== undefined )
+ ? jQuery.inArray( this, selector ) < 0
+ : this != selector;
});
},
});
},