Bind to correct object.
This commit is contained in:
@@ -42,19 +42,22 @@ export class ViewManager implements ViewManagerInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setViewDefault = (options?: ViewFactoryOptions): void =>
|
setViewDefault = (options?: ViewFactoryOptions): void =>
|
||||||
this._setViewGeneric(this._factory.getViewDefault, options);
|
this._setViewGeneric(this._factory.getViewDefault.bind(this._factory), options);
|
||||||
|
|
||||||
setViewByParameters = (options?: ViewFactoryOptions): void =>
|
setViewByParameters = (options?: ViewFactoryOptions): void =>
|
||||||
this._setViewGeneric(this._factory.getViewByParameters, options);
|
this._setViewGeneric(this._factory.getViewByParameters.bind(this._factory), options);
|
||||||
|
|
||||||
setViewDefaultWithNewQuery = async (options?: ViewFactoryOptions): Promise<void> =>
|
setViewDefaultWithNewQuery = async (options?: ViewFactoryOptions): Promise<void> =>
|
||||||
await this._setViewGenericAsync(this._factory.getViewDefaultWithNewQuery, options);
|
await this._setViewGenericAsync(
|
||||||
|
this._factory.getViewDefaultWithNewQuery.bind(this._factory),
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
setViewByParametersWithNewQuery = async (
|
setViewByParametersWithNewQuery = async (
|
||||||
options?: ViewFactoryOptions,
|
options?: ViewFactoryOptions,
|
||||||
): Promise<void> =>
|
): Promise<void> =>
|
||||||
await this._setViewGenericAsync(
|
await this._setViewGenericAsync(
|
||||||
this._factory.getViewByParametersWithNewQuery,
|
this._factory.getViewByParametersWithNewQuery.bind(this._factory),
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -62,7 +65,7 @@ export class ViewManager implements ViewManagerInterface {
|
|||||||
options?: ViewFactoryOptions,
|
options?: ViewFactoryOptions,
|
||||||
): Promise<void> =>
|
): Promise<void> =>
|
||||||
await this._setViewGenericAsync(
|
await this._setViewGenericAsync(
|
||||||
this._factory.getViewByParametersWithExistingQuery,
|
this._factory.getViewByParametersWithExistingQuery.bind(this._factory),
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user