Index: pkg/polymer/lib/src/declaration.dart |
diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart |
index 42486c3b0bfc359610b9ac0bde9f8cbb94da0389..fb5c8c95e64373f1cc63b65f2de3aa2914887a9f 100644 |
--- a/pkg/polymer/lib/src/declaration.dart |
+++ b/pkg/polymer/lib/src/declaration.dart |
@@ -159,8 +159,8 @@ class PolymerDeclaration { |
// from declaration/path.js |
void resolveElementPaths(Node node) { |
- if (_Platform == null) return; |
- _Platform['urlResolver'].callMethod('resolveDom', [node]); |
+ if (_Polymer == null) return; |
+ _Polymer['urlResolver'].callMethod('resolveDom', [node]); |
} |
// Dart note: renamed from "addResolvePathApi". |
@@ -553,3 +553,4 @@ bool _isObserverMethod(Symbol symbol) { |
final _ATTRIBUTES_REGEX = new RegExp(r'\s|,'); |
final JsObject _Platform = js.context['Platform']; |
+final JsObject _Polymer = js.context['Polymer']; |