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

Unified Diff: client/dom/templates/html/impl/impl_Element.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_Element.darttemplate
diff --git a/client/dom/templates/html/impl/impl_Element.darttemplate b/client/dom/templates/html/impl/impl_Element.darttemplate
index 96e670e55dfa4d112efd17580da57782bc971e67..57503ae205959782f811ce22310036c04e57aef2 100644
--- a/client/dom/templates/html/impl/impl_Element.darttemplate
+++ b/client/dom/templates/html/impl/impl_Element.darttemplate
@@ -59,6 +59,14 @@ class _ChildrenElementList implements ElementList {
return false;
}
+ Collection map(f(Element element)) {
+ final out = [];
+ for (Element el in this) {
+ out.add(f(el));
+ }
+ return out;
+ }
+
bool isEmpty() {
return _element._firstElementChild == null;
}
@@ -156,7 +164,7 @@ class _FrozenElementList implements ElementList {
_FrozenElementList._wrap(this._nodeList);
Element get first() {
- return _nodeList.first;
+ return _nodeList[0];
}
void forEach(void f(Element element)) {
« no previous file with comments | « client/dom/templates/html/frog/impl_Document.darttemplate ('k') | client/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698