Skip to content

Commit d288fc4

Browse files
committed
check dom before removing
1 parent 552a180 commit d288fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/html5/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ ElementPrototype.discard = function() {
471471

472472
ElementPrototype.remove = function() {
473473
var dom = this.dom
474-
if (dom.parentNode)
474+
if (dom && dom.parentNode)
475475
dom.parentNode.removeChild(dom)
476476
}
477477

0 commit comments

Comments
 (0)