Skip to content
Browse files

fix error message on missing event callback

  • Loading branch information...
1 parent e5db1c9 commit 5071967e32756597353d72776227570537e0d142 Otto Allmendinger committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone.js
View
2 backbone.js
@@ -1125,7 +1125,7 @@
for (var key in events) {
var method = events[key];
if (!_.isFunction(method)) method = this[events[key]];
- if (!method) throw new Error('Event "' + events[key] + '" does not exist');
+ if (!method) throw new Error('Method "' + events[key] + '" does not exist');
var match = key.match(eventSplitter);
var eventName = match[1], selector = match[2];
method = _.bind(method, this);

0 comments on commit 5071967

Please sign in to comment.
Something went wrong with that request. Please try again.