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;
}
updateOptions(options: O): void {
this._options = Object.assign(this._options, options);
}
emitChange(changedProps: any): void {
if (this._options.emitChange) {
this._options.emitChange(changedProps);