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

Unified Diff: lib/src/common/polymer_descriptor.dart

Issue 1351693003: Update to use one less proxy per element (Closed) Base URL: git@github.com:dart-lang/polymer-dart.git@behaviors
Patch Set: redo! Created 5 years, 3 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
Index: lib/src/common/polymer_descriptor.dart
diff --git a/lib/src/common/polymer_descriptor.dart b/lib/src/common/polymer_descriptor.dart
index 285c32d3bda1a9a243537d3ccd2f795cbc3c4567..fc426cddebf160c56f731a9a2d748242f50dcdcc 100644
--- a/lib/src/common/polymer_descriptor.dart
+++ b/lib/src/common/polymer_descriptor.dart
@@ -242,10 +242,11 @@ Iterable<JsObject> _buildBehaviorsList(Type type) {
finalBehaviors.add(behavior);
}
- return finalBehaviors.map((ClassMirror behavior) {
- BehaviorAnnotation meta = behavior.metadata.firstWhere(_isBehavior);
- return meta.getBehavior(behavior.reflectedType);
- });
+ return <JsObject>[_polymerDart['Behavior']]
Siggi Cherem (dart-lang) 2015/09/17 21:11:59 maybe we should rename Polymer.Dart.Behavior to so
jakemac 2015/09/23 17:37:08 Changed to InteropBehavior
+ ..addAll(finalBehaviors.map((ClassMirror behavior) {
+ BehaviorAnnotation meta = behavior.metadata.firstWhere(_isBehavior);
+ return meta.getBehavior(behavior.reflectedType);
+ }));
}
// Throws an error about expected mixins that must precede the [clazz] mixin.

Powered by Google App Engine
This is Rietveld 408576698