Fixed issue with .remove() not working correctly.

This commit is contained in:
John Resig 2006-08-31 04:05:57 +00:00
parent f7efcc858d
commit f404d2c395

View file

@ -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 );
},