Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Line 344 #5

Open
martinduparc opened this issue Dec 15, 2011 · 2 comments
Open

Error Line 344 #5

martinduparc opened this issue Dec 15, 2011 · 2 comments

Comments

@martinduparc
Copy link

Hi Christopher

There is an error when trying to edit the hex code input :

e is undefined
http://dev.cbeloch.de/mooRainbow/Source/mooRainbow.js
Line 344

This might have something to do with the new versions of Mootools since it worked before.

Thanks!

Martin

@martinduparc
Copy link
Author

Quick fix :

//el.addEvent('keydown', this.eventKeydown.bind(this, el));
el.addEvent('keydown', function (e) {
    this.eventKeydown(el, e);
}.bind(this));

//el.addEvent('keyup', this.eventKeyup.bind(this, el));
el.addEvent('keyup', function (e) {
    this.eventKeyup(el, e);
}.bind(this));

The bind function, when used with arguments, seems to overwrite the event argument eventKeyup() should receive.

@angelsk
Copy link

angelsk commented May 15, 2012

I've fixed this in my pull request #6 - Thanks for this code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants