OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart.html; | 5 part of dart.html; |
6 | 6 |
7 /** | 7 /** |
8 * Helper class to implement custom events which wrap DOM events. | 8 * Helper class to implement custom events which wrap DOM events. |
9 */ | 9 */ |
10 class _WrappedEvent implements Event { | 10 class _WrappedEvent implements Event { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 target = target.parent; | 76 target = target.parent; |
77 } while (target != null && target != currentTarget.parent); | 77 } while (target != null && target != currentTarget.parent); |
78 throw new StateError('No selector matched for populating matchedTarget.'); | 78 throw new StateError('No selector matched for populating matchedTarget.'); |
79 } | 79 } |
80 | 80 |
81 /** | 81 /** |
82 * This event's path, taking into account shadow DOM. | 82 * This event's path, taking into account shadow DOM. |
83 * | 83 * |
84 * ## Other resources | 84 * ## Other resources |
85 * | 85 * |
86 * * [Shadow DOM extensions to Event] | 86 * * [Shadow DOM extensions to |
87 * (http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event) from | 87 * Event](http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-even
t) |
88 * W3C. | 88 * from W3C. |
89 */ | 89 */ |
90 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex
tensions-to-event | 90 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex
tensions-to-event |
91 @Experimental() | 91 @Experimental() |
92 List<Node> get path => wrapped.path; | 92 List<Node> get path => wrapped.path; |
93 } | 93 } |
OLD | NEW |