Remove unused wheel event detection in isEventSupported (#11822)
Nathan Hunzaker committed
Dec 9, 2017 at 18:28 UTC
f23dd7150f270c843707f1a06ac12a6af63b7320
1 file changed
-15
packages/react-dom/src/events/isEventSupported.js
-15
@@ -7,16 +7,6 @@
7
8
import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
9
10
-let useHasFeature;
11
-if (ExecutionEnvironment.canUseDOM) {
12
- useHasFeature =
13
- document.implementation &&
14
- document.implementation.hasFeature &&
15
- // always returns true in newer browsers as per the standard.
16
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
17
- document.implementation.hasFeature('', '') !== true;
18
-}
19
-
10
/**
11
* Checks if an event is supported in the current execution environment.
12
*
@@ -48,11 +38,6 @@ function isEventSupported(eventNameSuffix, capture) {
38
isSupported = typeof element[eventName] === 'function';
39
}
40
51
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
52
- // This is the only way to test support for the `wheel` event in IE9+.
53
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
54
- }
55
-
41
return isSupported;
42
}
43