forked from mystiq/hydrogen-web
No need for lambda here
Co-authored-by: Bruno Windels <bruno@windels.cloud>
This commit is contained in:
parent
86ddfc1e9e
commit
3ff55204f3
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ export class RightPanelViewModel extends ViewModel {
|
||||||
_hookUpdaterToSegment(segment, viewmodel, argCreator, failCallback) {
|
_hookUpdaterToSegment(segment, viewmodel, argCreator, failCallback) {
|
||||||
const observable = this.navigation.observe(segment);
|
const observable = this.navigation.observe(segment);
|
||||||
const updater = this._setupUpdater(segment, viewmodel, argCreator, failCallback);
|
const updater = this._setupUpdater(segment, viewmodel, argCreator, failCallback);
|
||||||
this.track(observable.subscribe(() => updater()));
|
this.track(observable.subscribe(updater));
|
||||||
}
|
}
|
||||||
|
|
||||||
_setupUpdater(segment, viewmodel, argCreator, failCallback) {
|
_setupUpdater(segment, viewmodel, argCreator, failCallback) {
|
||||||
|
|
Loading…
Reference in a new issue