FIX: Incorrectly deleting `channel` preventing us from unsubscribing MB.

This commit is contained in:
Guo Xiang Tan 2018-03-06 19:52:00 +08:00
parent 7068b90c01
commit e09a4a353e
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ export default Ember.Controller.extend({
unsubscribe() {
this.messageBus.unsubscribe(this.get('channel'));
this._resetTracking();
this.set('channel', null);
},
_resetTracking() {
this.setProperties({
"newIncoming": [],
"incomingCount": 0,
"channel": null,
"incomingCount": 0
});
},