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

Unified Diff: lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate

Issue 11094082: Convert legacy 'native code' to JS-forms in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge 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/dart2js/impl_IDBDatabase.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
index 46b5c789cbaf775cbbf130a0759978456b771f45..b2f6d64a81a05191a6a06697077664e4cf45454a 100644
--- a/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
@@ -42,7 +42,8 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
_IDBTransactionImpl _transaction(stores, mode) native 'transaction';
- static bool _hasNumericMode(txn) native 'return typeof(txn.mode) === "number"';
+ static bool _hasNumericMode(txn) =>
+ JS('bool', 'typeof(#.mode) === "number"', txn);
$!MEMBERS}

Powered by Google App Engine
This is Rietveld 408576698