From f404d2c395626b3a09512b0b41da77fb7eb36260 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 31 Aug 2006 04:05:57 +0000 Subject: [PATCH] Fixed issue with .remove() not working correctly. --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 0a21af77..e26ae9e5 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -2549,7 +2549,7 @@ jQuery.macros = { * @cat DOM/Manipulation */ remove: function(a){ - if ( !a || jQuery.filter( [this], a ).r ) + if ( !a || jQuery.filter( a, [this] ).r ) this.parentNode.removeChild( this ); },