X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=jquery%2Fjquery.js;h=4592c1bf3bea6a0fda5a854681f07c95350637e4;hb=c75701a0152a589c21c4862c33b691902a8b8f7b;hp=179cd29a70e88152fc01af28561d4dafefceeb10;hpb=956529c7beddf7fed3f9d92aec10ecaa3289ad1b;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 179cd29..4592c1b 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -573,7 +573,7 @@ $.attr = function(o,a,v){ a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); - if ( v !== null ) { + if ( typeof v != 'undefined' ) { o[a] = v; if ( o.setAttribute ) { o.setAttribute(a,v);