X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=70a16e680a34aef156d768d221e9505d1db23d5b;hb=bfa79591b3c849d8df6cd8c7eac757732a855519;hp=607038944cbe1d3a4e7a10a246e08d77d55d8e03;hpb=4b2028896db81e7c5fee13b92a23e89526762f6a;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 6070389..70a16e6 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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" ) {