Skip to content

Commit

Permalink
fix: update safeDidOpen func
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpereznext authored and josex2r committed Dec 21, 2021
1 parent a1d135f commit 216a4da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions addon/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export default class ModalComponent extends Component {
}

_safeDidOpen() {
if (this.isDestroyed) {
return;
}

this.didOpen();
this.didOpen && this.didOpen();
}

_open() {
Expand Down

0 comments on commit 216a4da

Please sign in to comment.