setOption and getOption should look at publicOptions
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user