Skip to content

Commit

Permalink
Refactor disposing element
Browse files Browse the repository at this point in the history
  • Loading branch information
cocopon committed Mar 10, 2023
1 parent bbe6736 commit e2dcaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/blade/common/controller/blade.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Controller} from '../../../common/controller/controller';
import {disposeElement} from '../../../common/disposing-util';
import {removeElement} from '../../../common/dom-util';
import {ViewProps} from '../../../common/model/view-props';
import {ClassName} from '../../../common/view/class-name';
import {View} from '../../../common/view/view';
Expand Down Expand Up @@ -50,7 +50,7 @@ export class BladeController<V extends View = View> implements Controller<V> {
});

this.viewProps.handleDispose(() => {
disposeElement(elem);
removeElement(elem);
});
}

Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/common/disposing-util.ts

This file was deleted.

0 comments on commit e2dcaa0

Please sign in to comment.