Skip to content

Commit

Permalink
Delete callbacks when you unsubscribe from a channel. ryanb#102
Browse files Browse the repository at this point in the history
  • Loading branch information
chamnap committed Nov 9, 2014
1 parent d316c5c commit 5dd5784
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/private_pub.js
Expand Up @@ -84,6 +84,7 @@ function buildPrivatePub(doc) {
if (sub) {
sub.cancel();
delete self.subscriptionObjects[channel];
delete self.subscriptionCallbacks[channel];
}
},

Expand Down

0 comments on commit 5dd5784

Please sign in to comment.