progress - fix debouncer initial value

This commit is contained in:
Benjamin Pasero
2018-03-27 17:18:33 +02:00
parent 49b4567a47
commit 6563a31a3f
2 changed files with 7 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ class ProgressCallback extends Progress<IProgressStep> {
super(p => this.throttledReport(p));
}
@debounce(100, (result: IProgressStep, currentValue: IProgressStep) => mergeProgress(result, currentValue), Object.create(null))
@debounce(100, (result: IProgressStep, currentValue: IProgressStep) => mergeProgress(result, currentValue), () => Object.create(null))
throttledReport(p: IProgressStep): void {
this._proxy.$progressReport(this._handle, p);
}