On Feb 13, 2007, at 4:25 PM, Dave Methvin wrote:
Just discovered your "use unary operator" tip (http://www.javascripttoolbox.com/bestpractices/#plus). Great! Much more succinct then a parseInt(value).Be very careful using the + operator this way. +"32px" returns NaN parseInt("32px") returns 32
Heh. I was wondering about that. You saved me the trouble of having to test it. :)
Cheers, --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
