@samitouri / QOS-React-2 / commits / 63ca84e5af

Removed unnecessary cleanup in isEventSupported

Andreas Svensson committed Dec 24, 2013 at 01:02 UTC 63ca84e5afff114b0968c961214590f50fa5a1d7
1 file changed -5
src/dom/isEventSupported.js
-5
@@ -56,10 +56,6 @@ function isEventSupported(eventNameSuffix, capture) {
56 if (!isSupported) {
57 element.setAttribute(eventName, 'return;');
58 isSupported = typeof element[eventName] === 'function';
59 - if (typeof element[eventName] !== 'undefined') {
60 - element[eventName] = undefined;
61 - }
62 - element.removeAttribute(eventName);
59 }
60
61 if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
@@ -67,7 +63,6 @@ function isEventSupported(eventNameSuffix, capture) {
63 isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
64 }
65
70 - element = null;
66 return isSupported;
67 }
68