Skip to content

Commit

Permalink
pubsub fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Oct 3, 2014
1 parent 2daba8b commit f5c696f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

window.subscribe = function(message, subscriber) {
if (!(message in this._subscribers)) {
if (!(message in _subscribers)) {
_subscribers[message] = [];
}
_subscribers[message].push(subscriber);
Expand Down

0 comments on commit f5c696f

Please sign in to comment.