X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=76f11d76a6ffbd28098361d11da8a2057f1108d1;hb=a82b048db8c72dccb019e086e0ca50617df14915;hp=933e97433b11eb31a7d036d2942502e907915404;hpb=4e256bffa320f1fe87f6e4daf17bbb4ed29ae88a;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 933e974..76f11d7 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1281,7 +1281,7 @@ jQuery.extend({ 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) ) + if ( value && value.constructor == Number && type == "curCSS" && !exclude.test(prop) ) return value + "px"; return value;