Skip to content

Commit 0d7fd48

Browse files
committed
fix detached dom nodes leak
1 parent 1e2bcd8 commit 0d7fd48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/html5/html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ ElementPrototype.prepend = function(el) {
465465
ElementPrototype.discard = function() {
466466
_globals.core.RAIIEventEmitter.prototype.discard.apply(this)
467467
this.remove()
468+
this.dom = null
468469
}
469470

470471
ElementPrototype.remove = function() {

0 commit comments

Comments
 (0)