From 63ca84e5afff114b0968c961214590f50fa5a1d7 Mon Sep 17 00:00:00 2001 From: Andreas Svensson Date: Tue, 24 Dec 2013 01:02:24 +0100 Subject: [PATCH] Removed unnecessary cleanup in isEventSupported --- src/dom/isEventSupported.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dom/isEventSupported.js b/src/dom/isEventSupported.js index abf1934abc55..53e834cd51f3 100644 --- a/src/dom/isEventSupported.js +++ b/src/dom/isEventSupported.js @@ -56,10 +56,6 @@ function isEventSupported(eventNameSuffix, capture) { if (!isSupported) { element.setAttribute(eventName, 'return;'); isSupported = typeof element[eventName] === 'function'; - if (typeof element[eventName] !== 'undefined') { - element[eventName] = undefined; - } - element.removeAttribute(eventName); } if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') { @@ -67,7 +63,6 @@ function isEventSupported(eventNameSuffix, capture) { isSupported = document.implementation.hasFeature('Events.wheel', '3.0'); } - element = null; return isSupported; }