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

Update Backbone.js plugin to handle event map syntax. #307

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

jgerigmeyer
Copy link
Contributor

Fixes #306.

  • Supports Backbone.js .on() using event map syntax.

};
if (typeof name === 'object') {
// Handle event maps.
for (var key in name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to check if key is inside name's prototype.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mattrobenolt
Copy link
Contributor

Other than those couple comments, this seems reasonable.

@jgerigmeyer
Copy link
Contributor Author

I think I've addressed all the comments, but please let me know if I missed (or mis-interpreted) anything!

@mattrobenolt
Copy link
Contributor

Seems reasonable to me. Thanks. 🍰 ✨

mattrobenolt added a commit that referenced this pull request Jan 9, 2015
Update Backbone.js plugin to handle event map syntax.
@mattrobenolt mattrobenolt merged commit 43dd05d into getsentry:master Jan 9, 2015
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.

Backbone.js plugin breaks when using event map syntax for .on().
2 participants