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 893b877649bd1e55eb4bda52f196e6d76d9b03dc..e95a4e74bf2519f5379615d11df340f819013127 100644 |
--- a/client/dom/templates/html/impl/impl_Node.darttemplate |
+++ b/client/dom/templates/html/impl/impl_Node.darttemplate |
@@ -12,9 +12,10 @@ 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); |
- nodes.clear(); |
- nodes.addAll(copy); |
+ text = ''; |
+ for (Node node in value) { |
+ _appendChild(node); |
+ } |
} |
// TODO(jacobr): should we throw an exception if parent is already null? |