From c27d5ca6f5b69818c48fdc9b0f988790653fb1a5 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 28 Dec 2010 21:07:04 -0500 Subject: By default, use document root rather than current selection's context when add()ing elements. Fixes #7853. --- src/traversing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/traversing.js') diff --git a/src/traversing.js b/src/traversing.js index 15446bd8b..e86883d90 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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 ); -- cgit v1.2.3