[Pkg-javascript-commits] [backbone] 123/173: Fixing object notation for Events.once
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 07:44:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository backbone.
commit 00f5c39e2784602f89f4f036323ba3688ee45af4
Author: Royce Tucker <roytucke at gmail.com>
Date: Thu Jan 28 13:05:35 2016 -0600
Fixing object notation for Events.once
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 74cc23b..c14780f 100644
--- a/backbone.js
+++ b/backbone.js
@@ -309,7 +309,7 @@
Events.once = function(name, callback, context) {
// Map the event into a `{event: once}` object.
var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));
- return this.on(events, void 0, context);
+ return this.on(events, callback, context);
};
// Inversion-of-control versions of `once`.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list