X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=085b576b9e74a1e30804a86e26534ea1a4a33db5;hb=b98898d95be5cb7bb8b9fdb0d8a2595fc8d9cdf9;hp=ca4051f3d9cb23db233f6d95485c5d6beae58cf8;hpb=53e12752e00c2a86757ec15a0c871dee8ccd1bea;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index ca4051f..085b576 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -985,7 +985,7 @@ jQuery.fn = jQuery.prototype = { add: function(t) { return this.pushStack( jQuery.merge( this.get(), - typeof t == "string" ? jQuery(t).get() : t ) + typeof t == "string" ? jQuery(t).get() : t.length ? t : [t] ) ); }, @@ -1268,7 +1268,7 @@ jQuery.extend({ return value.call( elem, [index] ); // exclude the following css properties to add px - var exclude = /z-?index|font-?weight|opacity/i; + var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; // Handle passing in a number to a CSS property if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )