Re: Canvas and Interactivity

Cameron McCormack wrote:
> In particular, unary ! won’t invoke valueOf on the object.  It just
> evaluates to true for any object.

You mean false, right?

> Even more troublesome would be == and !=.  If you had rect.x and rect.y
> both be SVGAnimatedLengths whose values were 10, then rect.x == rect.y
> will evaluate to false, since == will check for object identity.

=== checks for identity.  == does not, last I checkd and in fact there 
are plenty of cases around in Gecko where == tests true on a pair of 
objects while === tests false...

No comment on confusion value...

-Boris

Received on Friday, 24 July 2009 02:18:07 UTC