Fixed issue with .remove() not working correctly.
[jquery.git] / src / jquery / jquery.js
index 0a21af7..e26ae9e 100644 (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 );
                },