mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
By default, use document root rather than current selection's context when add()ing elements. Fixes #7853.
This commit is contained in:
@@ -134,7 +134,7 @@ jQuery.fn.extend({
|
||||
|
||||
add: function( selector, context ) {
|
||||
var set = typeof selector === "string" ?
|
||||
jQuery( selector, context || this.context ) :
|
||||
jQuery( selector, context ) :
|
||||
jQuery.makeArray( selector ),
|
||||
all = jQuery.merge( this.get(), set );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user