I got the latest version, but my code still does not work (neither
with the suggested changes)
A quick test does work though:
---------------------------------------------------------
var test = function() {
bindMethods(this);
this.isOne = 1;
connect(window,'onclick',this.change);
}
test.prototype = {
change : function() {
this.isOne = 2;
connect(window,'onkeydown',this.check);
},
check : function() {
log(this.isOne);
}
}
test1 = new test();
-------------------------------------------------------------
logs 2 after a click and a keypress...
I do not see where the problem lies. ??
TiNo
On Jun 21, 3:51 am, "Bob Ippolito" <[EMAIL PROTECTED]> wrote:
> There was a bug in connect that interfered with bind(). You can either
> upgrade to the latest svn trunk, or change this:
> connect(window,'onkeydown',this.handleKey);
>
> to this:
> connect(window,'onkeydown',this, 'handleKey');
>
> -bob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---