Fixed .not([]) not working properly.
authorJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 16:59:41 +0000 (16:59 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 16:59:41 +0000 (16:59 +0000)
src/jquery/jquery.js

index f942bf4..6070389 100644 (file)
@@ -925,7 +925,7 @@ jQuery.fn = jQuery.prototype = {
 
                        jQuery.grep(this,function(a){
                                        if ( t.constructor == Array || t.jquery )
-                                               return !jQuery.inArray( t, a );
+                                               return jQuery.inArray( t, a ) < 0;
                                        else
                                                return a != t;
                        }) );