We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Backbone.js plugin's BackboneEventsOn fn expects .on() to have been called with arguments name, callback, and context:
BackboneEventsOn
.on()
name
callback
context
https://github.com/getsentry/raven-js/blob/master/plugins/backbone.js#L14-21
However, Backbone.js also supports calling .on() using the event map syntax (http://backbonejs.org/#Events-on), e.g.:
book.on({ "change:title": titleView.update, "change:author": authorPane.update, "destroy": bookView.remove });
This usage currently throws an error:
Uncaught TypeError: Cannot read property '_callback' of undefined
Am I missing something? I'll try to submit a PR shortly.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The Backbone.js plugin's
BackboneEventsOn
fn expects.on()
to have been called with argumentsname
,callback
, andcontext
:https://github.com/getsentry/raven-js/blob/master/plugins/backbone.js#L14-21
However, Backbone.js also supports calling
.on()
using the event map syntax (http://backbonejs.org/#Events-on), e.g.:This usage currently throws an error:
Am I missing something? I'll try to submit a PR shortly.
The text was updated successfully, but these errors were encountered: