By default, use document root rather than current selection's context when add()ing elements. Fixes #7853.
This commit is contained in:
parent
5fd21fc02b
commit
c27d5ca6f5
2 changed files with 9 additions and 8 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue