On 9/28/06, Peter Mularien <[EMAIL PROTECTED]> wrote:
>
> Bob's right. The difference is that function "g" isn't associated with
> the object "c" at all, therefore you can't really expect bindMethods to
> do anything with it. Now if you added "this.g = g;" then you would
> assume it would work the same way as your function f example does.

... but you still wouldn't be able to call it with just g() because
that's not how assignment and scope work in JavaScript. You'd need to
use this.g() or g = this.g (but the latter isn't really valid since
named function syntax is being used).

-bob

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

Reply via email to