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

Unified Diff: lib/html/templates/html/impl/impl_Node.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_Node.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Node.darttemplate b/lib/html/templates/html/impl/impl_Node.darttemplate
index 99921c2b05d645ce1930bd8943a8a12dc1ae36fd..594a2cc920e33d53cedeebf4baf78512b0ff61a4 100644
--- a/lib/html/templates/html/impl/impl_Node.darttemplate
+++ b/lib/html/templates/html/impl/impl_Node.darttemplate
@@ -15,10 +15,10 @@ class _ChildNodeListLazy implements List {
$if DART2JS
_NodeImpl get first => JS('_NodeImpl', '#.firstChild', _this);
- _NodeImpl last() => JS('_NodeImpl', '#.lastChild', _this);
+ _NodeImpl get last => JS('_NodeImpl', '#.lastChild', _this);
$else
_NodeImpl get first => _this.$dom_firstChild;
- _NodeImpl last() => _this.$dom_lastChild;
+ _NodeImpl get last => _this.$dom_lastChild;
$endif
void add(_NodeImpl value) {
@@ -37,7 +37,7 @@ $endif
}
_NodeImpl removeLast() {
- final result = last();
+ final result = last;
if (result != null) {
_this.$dom_removeChild(result);
}
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | lib/html/templates/html/impl/impl_NodeList.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698