git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for #2002
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
23c1b79
..
be989ea
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-340,7
+340,7
@@
jQuery.fn = jQuery.prototype = {
},
add: function( selector ) {
- return this.pushStack( jQuery.merge(
+ return !selector ? this : this.pushStack( jQuery.merge(
this.get(),
selector.constructor == String ?
jQuery( selector ).get() :