updateOptions is unused,not the best idea since options is/can be shared

This commit is contained in:
Bruno Windels 2022-05-09 14:10:50 +02:00
parent 6beff7e552
commit 3888291758

View file

@ -115,10 +115,6 @@ export class ViewModel<O extends Options = Options> extends EventEmitter<{change
return result; return result;
} }
updateOptions(options: O): void {
this._options = Object.assign(this._options, options);
}
emitChange(changedProps: any): void { emitChange(changedProps: any): void {
if (this._options.emitChange) { if (this._options.emitChange) {
this._options.emitChange(changedProps); this._options.emitChange(changedProps);