mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 15:34:56 -05:00
Fix for #2002
This commit is contained in:
@@ -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() :
|
||||
|
||||
Reference in New Issue
Block a user