Fix for #2002
This commit is contained in:
parent
be4a8c32ac
commit
d44e9451f7
2 changed files with 6 additions and 3 deletions
|
@ -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() :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue