Skip to content
Browse files

Merge pull request #1014 from OttoAllmendinger/master

fix error message on missing event callback
  • Loading branch information...
2 parents e5db1c9 + 5071967 commit 9587a1f2921e02d6eedb7352367bfa284b1619e9 @jashkenas jashkenas committed Feb 16, 2012
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 9587a1f

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