Commit f404d2c3 authored by John Resig's avatar John Resig

Fixed issue with .remove() not working correctly.

parent f7efcc85
...@@ -2549,7 +2549,7 @@ jQuery.macros = { ...@@ -2549,7 +2549,7 @@ jQuery.macros = {
* @cat DOM/Manipulation * @cat DOM/Manipulation
*/ */
remove: function(a){ remove: function(a){
if ( !a || jQuery.filter( [this], a ).r ) if ( !a || jQuery.filter( a, [this] ).r )
this.parentNode.removeChild( this ); this.parentNode.removeChild( this );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment