Skip to content

Commit 9efad52

Browse files
committed
remove element from stylecache in discard()
1 parent d7a1fdf commit 9efad52

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
@@ -463,6 +463,7 @@ ElementPrototype.prepend = function(el) {
463463
}
464464

465465
ElementPrototype.discard = function() {
466+
this._context._styleCache.pop(this)
466467
_globals.core.RAIIEventEmitter.prototype.discard.apply(this)
467468
this.remove()
468469
this.dom = null

0 commit comments

Comments
 (0)