]> source.dussan.org Git - jquery.git/commitdiff
Fixed issue with .remove() not working correctly.
authorJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 04:05:57 +0000 (04:05 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 04:05:57 +0000 (04:05 +0000)
src/jquery/jquery.js

index 0a21af773f98174573c33fd76d445b28c50ffacd..e26ae9e53d755425274af9612fd903aa3edd8d86 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 );
                },