forked from mystiq/hydrogen-web
no need to copy it over in viewmodel
This commit is contained in:
parent
f65db338cf
commit
e6c108c6e0
1 changed files with 3 additions and 3 deletions
|
@ -30,8 +30,8 @@ export class ViewModel extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
childOptions(explicitOptions) {
|
childOptions(explicitOptions) {
|
||||||
const {navigation, urlCreator, platform, logger} = this._options;
|
const {navigation, urlCreator, platform} = this._options;
|
||||||
return Object.assign({navigation, urlCreator, platform, logger}, explicitOptions);
|
return Object.assign({navigation, urlCreator, platform}, explicitOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
// makes it easier to pass through dependencies of a sub-view model
|
// makes it easier to pass through dependencies of a sub-view model
|
||||||
|
@ -104,7 +104,7 @@ export class ViewModel extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
get logger() {
|
get logger() {
|
||||||
return this._options.logger;
|
return this.platform.logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue