X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=d9f5b8a64e642507287fe65c1aa6e473628c31c7;hb=9f93c7b3b858c4491e1d2aa7a680b9b1dd29b17c;hp=19ee7c10e0439531507f0adfb761eb57cd981eb0;hpb=c96b991493b3e432fe095a18cab29b046577976c;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 19ee7c1..d9f5b8a 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -931,7 +931,7 @@ jQuery.fn = jQuery.prototype = { jQuery.grep(this, function(a) { return ( t.constructor == Array || t.jquery ) - ? console.log("t: %o a: %o", t, a) | jQuery.inArray( a, t ) < 0 + ? jQuery.inArray( a, t ) < 0 : a != t; }) ); @@ -986,7 +986,7 @@ jQuery.fn = jQuery.prototype = { this.get(), t.constructor == String ? jQuery(t).get() : - t.length != undefined && !t.nodeName ? + t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ? t : [t] ) ); },