mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
cancel timer when removing composer
This commit is contained in:
+4
@@ -72,6 +72,10 @@ export default Ember.Component.extend({
|
||||
|
||||
this.set('oldPresenceState', this.get('presenceState'));
|
||||
this.set('presenceState', stateObject);
|
||||
|
||||
if (isClosing) {
|
||||
Ember.run.cancel(this._timeoutTimer);
|
||||
}
|
||||
},
|
||||
|
||||
_ACTIONS: ['edit', 'reply'],
|
||||
|
||||
Reference in New Issue
Block a user