Skip to content

Commit

Permalink
Fix typo. Thanks, Garrett.
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Sep 13, 2009
1 parent 32e8176 commit 8dc5092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isEventSupported.js
Expand Up @@ -45,7 +45,7 @@ var isEventSupported = (function(){
isSupported = typeof element[eventName] == 'function';

// if property was created, "remove it" (by setting value to `undefined`)
if (element[eventName] != 'undefined') {
if (typeof element[eventName] != 'undefined') {
element[eventName] = void 0;
}
element.removeAttribute(eventName);
Expand Down

0 comments on commit 8dc5092

Please sign in to comment.