diff --git a/src/types/AbstractType.js b/src/types/AbstractType.js index 59484d31..5d5592c6 100644 --- a/src/types/AbstractType.js +++ b/src/types/AbstractType.js @@ -684,7 +684,7 @@ export class AbstractType { } } } - return /** @type {any} */ (d.done()) + return /** @type {any} */ (d) } /** diff --git a/src/utils/YEvent.js b/src/utils/YEvent.js index e209e80c..0a367d02 100644 --- a/src/utils/YEvent.js +++ b/src/utils/YEvent.js @@ -133,7 +133,7 @@ export class YEvent { * @public */ get delta () { - return /** @type {any} */ (this._delta ?? (this._delta = this.getDelta())) + return /** @type {any} */ (this._delta ?? (this._delta = this.getDelta().done())) } /**