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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 52443007: Allow matchingTarget to also include the currentTarget. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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:
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 23314254c91e9493b31d81e6e151ddc8a9f8d174..5f1033c438c9c9edb9f201bba3fa7608b62ea6d1 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -10716,7 +10716,7 @@ class Event extends Interceptor native "Event" {
var currentTarget = this.currentTarget;
var target = this.target;
var matchedTarget;
- while (matchedTarget == null && target != currentTarget && target != null) {
+ while (matchedTarget == null && target != currentTarget.parent && target != null) {
if (target.matches(_selector)) {
matchedTarget = target;
}
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/templates/html/impl/impl_Event.darttemplate » ('J')

Powered by Google App Engine
This is Rietveld 408576698