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

Unified Diff: lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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: lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index 3437c9e3f301565809c23887bc71155230b90400..4f516ac2b6f51bba62455edff16c8e0394891775 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -136,14 +136,14 @@ class _ChildrenElementList implements List {
}
Element removeLast() {
- final result = this.last();
+ final result = this.last;
if (result != null) {
_element.$dom_removeChild(result);
}
return result;
}
- Element last() {
+ Element get last {
return _element.$dom_lastElementChild;
}
}
@@ -269,7 +269,7 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- Element last() => _nodeList.last();
+ Element get last => _nodeList.last;
}
class _FrozenElementListIterator implements Iterator<Element> {
« no previous file with comments | « lib/html/templates/html/impl/impl_DocumentFragment.darttemplate ('k') | lib/html/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698