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

Unified Diff: lib/src/compiler.dart

Issue 22928008: Refactor emitter in web-ui to make dart.js the last script, also cleanup tests (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 4 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/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 65a70e7eded569fa5678579d2be2e7008d4de754..8af2585b1324520a59ca27c21c7e348016afdd98 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -616,11 +616,7 @@ class Compiler {
var document = file.document;
var hasCss = _emitAllCss();
transformMainHtml(document, fileInfo, _pathMapper, hasCss,
- options.rewriteUrls, _messages);
-
- document.body.nodes.add(parseFragment(
- '<script type="application/dart" src="$bootstrapOutName"></script>'));
-
+ options.rewriteUrls, _messages, bootstrapOutName);
output.add(new OutputFile(_pathMapper.outputPath(file.path, '.html'),
document.outerHtml, source: file.path));
}

Powered by Google App Engine
This is Rietveld 408576698