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

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

Issue 10825393: Fix for Issue 3039. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/lib/dom/templates/html/impl/impl_Node.darttemplate b/lib/dom/templates/html/impl/impl_Node.darttemplate
index e9ffda15c0bc56796fae16b2a13d4ba98740c176..019c59ce95ace16c7f617027a6cad98073cf6b2e 100644
--- a/lib/dom/templates/html/impl/impl_Node.darttemplate
+++ b/lib/dom/templates/html/impl/impl_Node.darttemplate
@@ -14,8 +14,8 @@ class _ChildNodeListLazy implements NodeList {
$if DART2JS
- _NodeImpl get first() native "return this._this.firstChild;";
- _NodeImpl last() native "return this._this.lastChild;";
+ _NodeImpl get first() => JS('_NodeImpl', '#.firstChild', _this);
+ _NodeImpl last() => JS('_NodeImpl', '#.lastChild', _this);
$else
_NodeImpl get first() => _this.$dom_firstChild;
_NodeImpl last() => _this.$dom_lastChild;
« no previous file with comments | « no previous file | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698