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

Unified Diff: client/dart.js

Issue 9310024: Start transitioning to new API to start Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dart.js
diff --git a/client/dart.js b/client/dart.js
index 7ccf42b9e6609934521c87add98d9654751d9036..d2f17415d2b2e72a337a22c9a00b7f21a71e98c9 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -4,7 +4,9 @@
// Bootstrap support for Dart scripts on the page as this script.
-if (!document.implementation.hasFeature('dart', '1.0')) {
+if (navigator.webkitStartDart) {
+ navigator.webkitStartDart();
+} else if (!document.implementation.hasFeature('dart', '1.0')) {
vsm 2012/02/01 15:35:08 Are you leaving hasFeature for staging purposes on
antonm 2012/02/01 17:07:00 Yes, hasFeature is only left for staging purposes
window.addEventListener("DOMContentLoaded", function (e) {
// Fall back to compiled JS.
var scripts = document.getElementsByTagName("script");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698