Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: client/dom/templates/html/impl/impl_Node.darttemplate

Issue 9600035: Enable new dart:html wrapperless frog bindings and wrapper dartium bindings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle all code review comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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?

Powered by Google App Engine
This is Rietveld 408576698