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

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: update comments 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
« no previous file with comments | « lib/src/common/js_proxy.dart ('k') | lib/src/common/polymer_mixin.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/common/polymer_descriptor.dart
diff --git a/lib/src/common/polymer_descriptor.dart b/lib/src/common/polymer_descriptor.dart
index b0c8c10da58d6aaeab68c30b7f88bf1b46468664..147155d12e5bc633cd532f87f2347b265d017130 100644
--- a/lib/src/common/polymer_descriptor.dart
+++ b/lib/src/common/polymer_descriptor.dart
@@ -231,10 +231,11 @@ Iterable<JsObject> _buildBehaviorsList(Type type) {
behaviorStack.add(behavior);
}
- return behaviorStack.map((ClassMirror behavior) {
- BehaviorAnnotation meta = behavior.metadata.firstWhere(_isBehavior);
- return meta.getBehavior(behavior.reflectedType);
- });
+ return <JsObject>[_polymerDart['InteropBehavior']]
+ ..addAll(behaviorStack.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.
« no previous file with comments | « lib/src/common/js_proxy.dart ('k') | lib/src/common/polymer_mixin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698