On Feb 17, 11:00 am, Ryan Florence <[email protected]> wrote:
> > MooTools class system
> > prevents you from using JavaScript instanceof.
>
> Says who?

You know, I think I misread something. Mark Joseph Obcena, in the new
"Pro JavaScript with MooTools" (p130) says:

"In this example, mark isn’t of the Person type but rather of the
Object type, even if its class is Person.
In the MooTools system, objects created from MooTools classes always
have Object as their type and
only objects created from the actual MooTools type constructors are
given a different type."

I wasn't remembering correctly---I was thinking that the book said
that "instanceof" didn't work. Instead, the book is describing one
aspect of MooTools' typeOf() function. Thanks to Christopher and Ryan
for correcting me, and sorry for getting this thread off-topic.

Reply via email to