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

Unified Diff: client/dart.js

Issue 9310059: Nuke DOMImplementation.hasFeature test for Dart support. (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 2f12b814375ba13fb3d74b9e94120f7deaf8f4c1..d740c1fcd6940f2589a14ae38f86a267b056049c 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -4,10 +4,9 @@
// Bootstrap support for Dart scripts on the page as this script.
-// TODO: remove hasFeature clause once fully migrated to webkitStartDart.
if (navigator.webkitStartDart) {
navigator.webkitStartDart();
-} else if (!document.implementation.hasFeature('dart', '1.0')) {
+} else {
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