FIX: Incorrectly deleting `channel` preventing us from unsubscribing MB.
This commit is contained in:
parent
7068b90c01
commit
e09a4a353e
|
@ -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
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue