Index: pkg/polymer/lib/src/declaration.dart |
diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart |
index a82017baada84e1a6cc3e2f8b08dcb4d10bac738..85f07646bcf984336d5013a04bfe0d97313aff97 100644 |
--- a/pkg/polymer/lib/src/declaration.dart |
+++ b/pkg/polymer/lib/src/declaration.dart |
@@ -205,7 +205,7 @@ class PolymerDeclaration { |
_getPublishedProperties(type); |
- // merge names from 'attributes' attribute |
+ // merge names from 'attributes' attribute into the '_publish' object |
var attrs = element.attributes['attributes']; |
if (attrs != null) { |
// names='a b c' or names='a,b,c' |
@@ -489,7 +489,7 @@ PolymerDeclaration _getDeclaration(String name) => _declarations[name]; |
/// Using Polymer's platform/src/ShadowCSS.js passing the style tag's content. |
void _shimShadowDomStyling(DocumentFragment template, String name, |
String extendee) { |
- if (template == null || _ShadowCss == null) return; |
+ if (template == null || _ShadowCss == null ||!_hasShadowDomPolyfill) return; |
_ShadowCss.callMethod('shimStyling', [template, name, extendee]); |
} |