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

can/event delegate/undelegate aren't using the correct scope #1039

Closed
andykant opened this issue Jun 2, 2014 · 1 comment
Closed

can/event delegate/undelegate aren't using the correct scope #1039

andykant opened this issue Jun 2, 2014 · 1 comment
Labels
Milestone

Comments

@andykant
Copy link
Contributor

andykant commented Jun 2, 2014

The delegate and undelegate method aliases in can/event aren't currently passing the proper scope when adding/removing event listeners.

Currently:

delegate: function(selector, event, handler) {
  return can.addEvent.call(event, handler);
},

Should be:

delegate: function(selector, event, handler) {
  return can.addEvent.call(this, event, handler);
},
@daffl
Copy link
Contributor

daffl commented Jun 10, 2014

Closed via #1055

@daffl daffl closed this as completed Jun 10, 2014
@andykant andykant removed their assignment Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants