aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/event.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js
index a17cf8947..f3a5d9f49 100644
--- a/src/event.js
+++ b/src/event.js
@@ -652,15 +652,13 @@ var withinElement = function( event ) {
// Firefox sometimes assigns relatedTarget a XUL element
// which we cannot access the parentNode property of
- // Chrome does something similar, the parentNode property
- // can be accessed but is null.
try {
// Traverse up the tree
while ( parent && parent !== this ) {
parent = parent.parentNode;
}
- if ( parent && parent !== this ) {
+ if ( parent !== this ) {
// set the correct event type
event.type = event.data;