Skip to content

Commit

Permalink
make element null so there is no detached node tree when destroying i…
Browse files Browse the repository at this point in the history
…nstance
  • Loading branch information
kbrsh committed Feb 25, 2017
1 parent 2d50b14 commit 225663e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@
*/
Moon.prototype.destroy = function () {
this.removeEvents();
this.$el = null;
this.$destroyed = true;
callHook(this, 'destroyed');
};
Expand Down
Loading

0 comments on commit 225663e

Please sign in to comment.