From: John Resig Date: Thu, 31 Aug 2006 04:05:57 +0000 (+0000) Subject: Fixed issue with .remove() not working correctly. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=f404d2c395626b3a09512b0b41da77fb7eb36260;p=jquery.git Fixed issue with .remove() not working correctly. --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 0a21af7..e26ae9e 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 ); },