mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
no need to copy it over in viewmodel
This commit is contained in:
parent
f65db338cf
commit
e6c108c6e0
@ -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 New Issue
Block a user