X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=6d1fb2f99a2883e829f932789919104163d9707f;hb=5b7f34d74bd78c97d86ae82f2899d0ce6d04b0c3;hp=f942bf4f6fceb3d6f6d3d8a59c2407e50349d6dd;hpb=fd30d7746d1b98b362f796f235805061d63d514f;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index f942bf4..6d1fb2f 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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; }) ); @@ -1386,6 +1386,11 @@ jQuery.extend({ for ( var i = 0, al = a.length; i < al; i++ ) { var arg = a[i]; + + if ( !arg ) continue; + + if ( arg.constructor == Number ) + arg = arg.toString(); // Convert html string into DOM nodes if ( typeof arg == "string" ) { @@ -1699,7 +1704,7 @@ jQuery.extend({ */ /* - * Wheather the W3C compliant box model is being used. + * Whether the W3C compliant box model is being used. * * @property * @name $.boxModel