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

Inside the eventHandler this.scope is not set (as it's called on the scope itself) #550

Merged
merged 1 commit into from
Nov 20, 2013

Conversation

simpleTechs
Copy link

Interestingly enough, this does not make any difference at all to any of the tests - I was trying to solve another problem with my code and just stumbled over this. Maybe someone can shed a bit light onto this line and what it does. @justinbmeyer maybe?

…scope itself)

Interestingly enough, this does not make any difference at all to any of the tests - I was trying to solve another problem with my code and just stumbled over this. Maybe someone can shed a bit light onto this line and what it does. @justinbmeyer maybe?
@justinbmeyer
Copy link
Contributor

Actually, it's because this.on automatically calls the function back with this as the control so that var self is unnecessary. Anyway you can submit a pull that just removes the var self?

@justinbmeyer
Copy link
Contributor

Actually .. maybe not. Great catch!

justinbmeyer added a commit that referenced this pull request Nov 20, 2013
@justinbmeyer justinbmeyer merged commit ce8dc35 into canjs:master Nov 20, 2013
@simpleTechs simpleTechs deleted the patch-2 branch December 9, 2013 23:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants