Skip to content

Commit

Permalink
fix: disposable
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed May 24, 2021
1 parent dc5722e commit 793b469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unit/src/Application/Disposable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Disposable {
const disposer = collection.get(target);
if (!disposer) {
const finish = target.dispose;
const newDisposer = new Disposer(target.constructor.name, () => finish.call(this));
const newDisposer = new Disposer(target.constructor.name, () => finish.call(target));
Reflect.defineProperty(target, "dispose", {
value: function () {
return newDisposer.dispose();
Expand Down

0 comments on commit 793b469

Please sign in to comment.