This commit is contained in:
Jörn Zaefferer 2007-12-06 19:51:00 +00:00
parent be4a8c32ac
commit d44e9451f7
2 changed files with 6 additions and 3 deletions

View file

@ -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() :