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:
Juan Tejada 2016-05-11 12:23:58 -07:00
parent 3e21a89a88
commit 7647fd396b
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ export default class QuerySubscription {
}
}
onLastCallbackRemoved = () => {
onLastCallbackRemoved() {
}

View file

@ -42,7 +42,7 @@ export default class UnreadQuerySubscription extends MutableQuerySubscription {
this._query = buildQuery(this._categoryIds).limit(limit).offset(offset);
}
onLastCallbackRemoved = () => {
onLastCallbackRemoved() {
this._unlisten();
}
}