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

Unified Diff: client/dart.js

Issue 10454112: Remove frog from the SDK and stop running it from the editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Never map to .js_. Created 8 years, 7 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 | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java » ('j') | 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 061d78c96d2e04d24ed5d1ebe6784a1c960af378..a21644065ff6e26778c9b66836e11a280f19594b 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -16,28 +16,16 @@ if (navigator.webkitStartDart) {
// replace them if they have a type that indicate that they source
// in Dart code.
//
- // <script type="application/dart" src="<file>.dart"></script>
- //
- // If the script tag has a 'data-compiler' attribute set to
- // frog then we use the frog generated file rather than the
- // one produced by dart2js:
- //
- // <script ... data-compiler="frog"></script>
+ // <script type="application/dart" src="..."></script>
//
var scripts = document.getElementsByTagName("script");
var length = scripts.length;
for (var i = 0; i < length; ++i) {
if (scripts[i].type == "application/dart") {
- // Remap foo.dart to foo.js or foo.js_ depending
- // on the chosen compiler (frog or dart2js).
+ // Remap foo.dart to foo.dart.js.
if (scripts[i].src && scripts[i].src != '') {
var script = document.createElement('script');
- var compiler = scripts[i].getAttribute('data-compiler');
- if (compiler == "frog") {
- script.src = scripts[i].src + '.js_';
- } else {
- script.src = scripts[i].src + '.js';
- }
+ script.src = scripts[i].src + '.js';
var parent = scripts[i].parentNode;
parent.replaceChild(script, scripts[i]);
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698