Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1966)

Unified Diff: pkg/polymer/lib/src/declaration.dart

Issue 29823005: fixes to polymer, gets tests back to a stable state (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/build/polyfill_injector.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 : '';
}
« no previous file with comments | « pkg/polymer/lib/src/build/polyfill_injector.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698