Index: client/dom/templates/html/impl/impl_Node.darttemplate |
diff --git a/client/dom/templates/html/impl/impl_Node.darttemplate b/client/dom/templates/html/impl/impl_Node.darttemplate |
index e95a4e74bf2519f5379615d11df340f819013127..531b64bc24460e75cd8dded64a89663457950408 100644 |
--- a/client/dom/templates/html/impl/impl_Node.darttemplate |
+++ b/client/dom/templates/html/impl/impl_Node.darttemplate |
@@ -12,8 +12,9 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
void set nodes(Collection<Node> value) { |
// Copy list first since we don't want liveness during iteration. |
// TODO(jacobr): there is a better way to do this. |
+ List copy = new List.from(value); |
text = ''; |
- for (Node node in value) { |
+ for (Node node in copy) { |
_appendChild(node); |
} |
} |