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

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

Issue 26395002: fix polymer copy-instance-attributes feature (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update pkg.status 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/pkg.status ('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 a7584b6326fa44bfc664092725a0bc218c938d5a..6436ffd25d4b66508a40a9f786ac1244a3c4ce30 100644
--- a/pkg/polymer/lib/src/declaration.dart
+++ b/pkg/polymer/lib/src/declaration.dart
@@ -71,7 +71,7 @@ class PolymerDeclaration extends CustomElement {
Map<String, Symbol> _observe;
- Map<Symbol, Object> _instanceAttributes;
+ Map<String, Object> _instanceAttributes;
List<Element> _sheets;
List<Element> get sheets => _sheets;
@@ -293,13 +293,13 @@ class PolymerDeclaration extends CustomElement {
void accumulateInstanceAttributes() {
// inherit instance attributes
- _instanceAttributes = new Map<Symbol, Object>();
+ _instanceAttributes = new Map<String, Object>();
if (_super != null) _instanceAttributes.addAll(_super._instanceAttributes);
// merge attributes from element
attributes.forEach((name, value) {
if (isInstanceAttribute(name)) {
- _instanceAttributes[new Symbol(name)] = value;
+ _instanceAttributes[name] = value;
}
});
}
« no previous file with comments | « pkg/pkg.status ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698