| Index: pkg/polymer/lib/src/declaration.dart
|
| diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart
|
| index f776fb5fadee36d81750bd40c8f37987e942c46d..72458c85229f5c59898f7a4a4dc06ba061a2bc7b 100644
|
| --- a/pkg/polymer/lib/src/declaration.dart
|
| +++ b/pkg/polymer/lib/src/declaration.dart
|
| @@ -479,7 +479,7 @@ class PolymerDeclaration extends HtmlElement {
|
| if (method.isStatic || !method.isRegularMethod) continue;
|
|
|
| String name = MirrorSystem.getName(method.simpleName);
|
| - if (name.endsWith('Changed')) {
|
| + if (name.endsWith(_OBSERVE_SUFFIX) && name != 'attributeChanged') {
|
| if (_observe == null) _observe = {};
|
| name = name.substring(0, name.length - 7);
|
| _observe[name] = method.simpleName;
|
| @@ -638,7 +638,7 @@ void _applyStyleToScope(StyleElement style, Node scope) {
|
|
|
| String _cssTextFromSheet(Element sheet) {
|
| if (sheet == null || js.context == null) return '';
|
| - var resource = new JsObject.fromBrowserObject(sheet)['__resource'];
|
| + var resource = new js.JsObject.fromBrowserObject(sheet)['__resource'];
|
| return resource != null ? resource : '';
|
| }
|
|
|
|
|