mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-19 14:40:26 +08:00
fix(query-subs): Fix onLastCallbackRemoved
overriding with correct class syntax
- Using arrow function syntax for a class method that is meant to be overriden will prevent it from being properly overriden - This caused onLastCallbackRemoved not to be called
This commit is contained in:
parent
cf0bde9b14
commit
691edfcd5b
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ export default class QuerySubscription {
|
|||
}
|
||||
}
|
||||
|
||||
onLastCallbackRemoved = () => {
|
||||
onLastCallbackRemoved() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ export default class UnreadQuerySubscription extends MutableQuerySubscription {
|
|||
this._query = buildQuery(this._categoryIds).limit(limit).offset(offset);
|
||||
}
|
||||
|
||||
onLastCallbackRemoved = () => {
|
||||
onLastCallbackRemoved() {
|
||||
this._unlisten();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue