Dave Methvin schrieb:
> Object wrappers are a minefield because they sometimes don't behave the same
> as their primitive type. For example, eval() won't work if called with a
> "new String" argument, and "new Boolean(false)" evaluates to TRUE in a
> conditional context because it's an object.
new Boolean(false) becomes false, but new Boolean('false') becomes true.
Or did I get that wrong?
http://www.jibbering.com/faq/faq_notes/type_convert.html#tcBool
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/