setOption and getOption should look at publicOptions

This commit is contained in:
Simon Lamon
2021-10-22 20:53:06 +00:00
parent 33bbc4f4b8
commit 57e6cfd500
+2 -2
View File
@@ -126,7 +126,7 @@ export class OptionsService implements IOptionsService {
} }
public setOption(key: string, value: any): void { public setOption(key: string, value: any): void {
this.options[key] = value; this.publicOptions[key] = value;
} }
private _sanitizeAndValidateOption(key: string, value: any): any { private _sanitizeAndValidateOption(key: string, value: any): any {
@@ -181,6 +181,6 @@ export class OptionsService implements IOptionsService {
} }
public getOption(key: string): any { public getOption(key: string): any {
return this.options[key]; return this.publicOptions[key];
} }
} }