Index: lib/html/templates/html/impl/impl_NodeList.darttemplate |
diff --git a/lib/html/templates/html/impl/impl_NodeList.darttemplate b/lib/html/templates/html/impl/impl_NodeList.darttemplate |
index cf0803489b51cf0d255af69cadaa1f7e0dc450dc..5e944540609b543377ed93a27dd72d4b3951cacb 100644 |
--- a/lib/html/templates/html/impl/impl_NodeList.darttemplate |
+++ b/lib/html/templates/html/impl/impl_NodeList.darttemplate |
@@ -50,7 +50,7 @@ class _ListWrapper<E> implements List<E> { |
E removeLast() => _list.removeLast(); |
- E last() => _list.last(); |
+ E get last => _list.last; |
List<E> getRange(int start, int rangeLength) => |
_list.getRange(start, rangeLength); |
@@ -113,7 +113,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
} |
_NodeImpl removeLast() { |
- final result = this.last(); |
+ final result = this.last; |
if (result != null) { |
_parent.$dom_removeChild(result); |
} |
@@ -155,7 +155,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
int lastIndexOf(Node element, [int start = 0]) => |
_Lists.lastIndexOf(this, element, start); |
- Node last() => this[length - 1]; |
+ Node get last => this[length - 1]; |
Node get first => this[0]; |
// FIXME: implement thesee. |