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

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

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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 | « dart/pkg/polymer/lib/src/declaration.dart ('k') | dart/pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/polymer/lib/src/events.dart
===================================================================
--- dart/pkg/polymer/lib/src/events.dart (revision 37358)
+++ dart/pkg/polymer/lib/src/events.dart (working copy)
@@ -57,7 +57,15 @@
}
if (controller is Polymer) {
- var args = [e, e.detail, e.currentTarget];
+ var detail = null;
+ if (e is CustomEvent) {
+ detail = e.detail;
+ // TODO(sigmund): this shouldn't be necessary. See issue 19315.
+ if (detail == null) {
+ detail = new JsObject.fromBrowserObject(e)['detail'];
+ }
+ }
+ var args = [e, detail, e.currentTarget];
controller.dispatchMethod(controller, method, args);
} else {
throw new StateError('controller $controller is not a '
« no previous file with comments | « dart/pkg/polymer/lib/src/declaration.dart ('k') | dart/pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698