'self' is not the correct argument to bindMethods, because 'self'
doesn't have any meaningful value. 'this' is what you need to use.

On Feb 13, 2008 3:18 AM, Akari no ryu <[EMAIL PROTECTED]> wrote:
>
> Nope. If I take out the bindMethods invocation and log self, it prints
> "Object Object" which is expected behaviour.
>
> On Feb 5, 3:17 pm, "Bob Ippolito" <[EMAIL PROTECTED]> wrote:
> > I think you're confused. self is not defined. You want to be using this.
> >
>
> > On Feb 4, 2008 11:59 PM, Akari no ryu <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > self is a property of the pseudo classes in Javascript, similar to
> > > this.
> > > I possibly should have added that if I comment out the bindMethods
> > > part, everything works as expected.
> >
> > > On Feb 5, 7:55 am, "Bob Ippolito" <[EMAIL PROTECTED]> wrote:
> > > > Card = function(value, suit, orientation, set)
> > > > {
> > > >        MochiKit.Base.bindMethods(self);
> >
> > > > ^^ self isn't defined here.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to