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

Unified Diff: lib/html/src/dart2js_MutationObserverSupported.dart

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: 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/src/dart2js_MutationObserverSupported.dart
diff --git a/lib/html/src/dart2js_MutationObserverSupported.dart b/lib/html/src/dart2js_MutationObserverSupported.dart
index f7329073a696981376d34b9dbeadd0132765a700..2157df7a929db74b67ebfa928c0604db0e320df1 100644
--- a/lib/html/src/dart2js_MutationObserverSupported.dart
+++ b/lib/html/src/dart2js_MutationObserverSupported.dart
@@ -6,6 +6,5 @@
* Checks to see if the mutation observer API is supported on the current
* platform.
*/
-bool _isMutationObserverSupported() native '''
- return !!( window.MutationObserver || window.WebKitMutationObserver);
-''';
+bool _isMutationObserverSupported() =>
+ JS('bool', '!!(window.MutationObserver || window.WebKitMutationObserver)');

Powered by Google App Engine
This is Rietveld 408576698