| Index: pkg/polymer/lib/src/build/polyfill_injector.dart
|
| diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart
|
| index d1597e17030ae51cf0133f0d5db7a56ca80f61a1..6fcafd2b02adeba8a14aa6b10adedc5d69c5414d 100644
|
| --- a/pkg/polymer/lib/src/build/polyfill_injector.dart
|
| +++ b/pkg/polymer/lib/src/build/polyfill_injector.dart
|
| @@ -14,8 +14,7 @@ import 'package:html5lib/parser.dart' show parseFragment;
|
| import 'common.dart';
|
|
|
| /// Ensures that any scripts and polyfills needed to run a polymer application
|
| -/// are included. For example, this transformer will ensure that there is a
|
| -/// script tag that loads the polyfills and interop.js (used for css shimming).
|
| +/// are included.
|
| ///
|
| /// This step also replaces "packages/browser/dart.js" and the Dart script tag
|
| /// with a script tag that loads the dart2js compiled code directly.
|
| @@ -31,7 +30,6 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
|
| Future apply(Transform transform) {
|
| return readPrimaryAsHtml(transform).then((document) {
|
| bool webComponentsFound = false;
|
| - bool jsInteropFound = false;
|
| Element dartJs;
|
| final dartScripts = <Element>[];
|
|
|
| @@ -39,9 +37,7 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
|
| var src = tag.attributes['src'];
|
| if (src != null) {
|
| var last = src.split('/').last;
|
| - if (last == 'interop.js') {
|
| - jsInteropFound = true;
|
| - } else if (_webComponentsJS.hasMatch(last)) {
|
| + if (_webComponentsJS.hasMatch(last)) {
|
| webComponentsFound = true;
|
| } else if (last == 'dart.js') {
|
| dartJs = tag;
|
| @@ -88,9 +84,6 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
|
| '<script src="packages/$urlSegment"></script>\n'));
|
| }
|
|
|
| - // JS interop code is required for Polymer CSS shimming.
|
| - if (!jsInteropFound) _addScriptFirst('browser/interop.js');
|
| -
|
| var suffix = options.releaseMode ? '.js' : '.concat.js';
|
| if (!webComponentsFound) {
|
| _addScriptFirst('web_components/dart_support.js');
|
|
|