Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix subscribeOnce

  • Loading branch information...
commit f8f10c5d53f12d53dd5611fcf6a4e7133598c96c 1 parent 7579c21
@jsermeno jsermeno authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  packages/lib/PubSub.js
View
2  packages/lib/PubSub.js
@@ -58,7 +58,7 @@ exports = Class(function() {
this.subscribeOnce = function(signal, ctx, method) {
var args = arguments,
cb = bind(this, function() {
- this.unsubscribe(this, cb);
+ this.unsubscribe(signal, cb);
if (args.length == 2) {
ctx.apply(GLOBAL, arguments);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.