| Index: lib/src/compiler.dart
|
| diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
|
| index e7af8f7f37b394537c560af6d83790f81a1c0622..59b257353e413da710b755cc95640bc61a7224b9 100644
|
| --- a/lib/src/compiler.dart
|
| +++ b/lib/src/compiler.dart
|
| @@ -128,19 +128,10 @@ class BatchCompiler extends AbstractCompiler {
|
| if (_jsGen != null) {
|
| var unit = units.first;
|
| var parts = units.skip(1).toList();
|
| -
|
| - // TODO(jmesserly): this hack is to avoid compiling the same compilation
|
| - // unit to JS twice. We mutate the AST, so it's not safe to run more than
|
| - // once on the same unit.
|
| - if (unit.getProperty(_propertyName) == true) return;
|
| - unit.setProperty(_propertyName, true);
|
| -
|
| _jsGen.generateLibrary(new LibraryUnit(unit, parts));
|
| }
|
| }
|
|
|
| - static const String _propertyName = 'dev_compiler.BatchCompiler.isCompiled';
|
| -
|
| void compileHtml(Source source) {
|
| // TODO(jmesserly): reuse DartScriptsTask instead of copy/paste.
|
| var contents = context.getContents(source);
|
|
|