Skip to content

Commit

Permalink
Removed unnecessary cleanup in isEventSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
syranide committed Dec 24, 2013
1 parent 9e0987c commit 63ca84e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/dom/isEventSupported.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,13 @@ 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') {
// This is the only way to test support for the `wheel` event in IE9+.
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
}

element = null;
return isSupported;
}

Expand Down

0 comments on commit 63ca84e

Please sign in to comment.