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

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

Issue 23808005: Added back childNodes and getAttribute and setAttribute. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
index e544887e2d3e846d07caeaa8feec0087be756b1a..8f2fc4adc677224703b416fe6bbd8179300f4c43 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -145,7 +145,7 @@ $endif
_this._replaceChild(value, this[index]);
}
- Iterator<Node> get iterator => _this._childNodes.iterator;
+ Iterator<Node> get iterator => _this.childNodes.iterator;
// From List<Node>:
@@ -167,15 +167,15 @@ $endif
// -- end List<Node> mixins.
// TODO(jacobr): benchmark whether this is more efficient or whether caching
- // a local copy of _childNodes is more efficient.
- int get length => _this._childNodes.length;
+ // a local copy of childNodes is more efficient.
+ int get length => _this.childNodes.length;
void set length(int value) {
throw new UnsupportedError(
"Cannot set length on immutable List.");
}
- Node operator[](int index) => _this._childNodes[index];
+ Node operator[](int index) => _this.childNodes[index];
}
/** Information about the instantiated template. */
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698