Removed unnecessary null check (#6841)
Jim committed
May 23, 2016 at 11:25 UTC
799eae2fafae6826380d1a7f1fa9619da6cfbd29
1 file changed
+1
-1
src/renderers/dom/client/syntheticEvents/SyntheticUIEvent.js
+1
-1
@@ -26,7 +26,7 @@ var UIEventInterface = {
26
}
27
28
var target = getEventTarget(event);
29
- if (target != null && target.window === target) {
29
+ if (target.window === target) {
30
// target is a window object
31
return target;
32
}