That's confusing indeed, better would be "Checks to see if an object is an
instance of a particular Type* or Class.*"


On Wed, Dec 29, 2010 at 2:50 PM, stratboy <em...@reghellin.com> wrote:

> Yes you're right, excuse me. I read 'Checks to see if an object is an
> instance of a particular Type.' and for some reason I thought that wth
> Type (and not type) they intended some of the core mootools Types.
>
> Thank you!
>
>
>
>
> On 29 Dic, 14:35, Arian Stolwijk <ar...@aryweb.nl> wrote:
> > Example from the docs:
> http://mootools.net/docs/core/Core/Core#Core:instanceOf
> >
> > var myClass = new Class();
> > var bar = new myClass();
> > instanceOf(bar, myClass) // returns true
> >
> > So you could use instanceOf for your classes.
> >
> > On Wed, Dec 29, 2010 at 2:30 PM, stratboy <em...@reghellin.com> wrote:
> > > Hi! I want to check the type of a function argument. I want to be able
> > > to say if it's an object instance of a custom class I made.
> >
> > > Do you know of any way? In ActionScript there's an 'is' method that I
> > > can use.
> >
> > > Bye!
>

Reply via email to