Klaus Hartl schrieb:
> If it is intended to provide the height even for hidden elements, it 
> should be changed to this:
> 
> return arguments[0] != undefined ? this.css("height", arguments[0]) : 
> parseInt( jQuery.css(this[0], "height") );
> 
> I vote for the latter. This applies to jQuery 1.1 as well (tested).

parseInt is not needed in that case:

return arguments[0] != undefined ? this.css("height", arguments[0]) : 
jQuery.css(this[0], "height");


Also do not forget to update the documentation:

  * @example $("#testdiv").width()
  * @result "200px"
                ^^

-- Klaus



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to