Skip to content

Commit

Permalink
Add workaround for winjs#1665
Browse files Browse the repository at this point in the history
  • Loading branch information
dantler committed Jul 15, 2017
1 parent 32aa9a7 commit f4bf991
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/WinJS/Utilities/_ElementUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,11 @@ define([
} else if (equivalentEvent) {
element.removeEventListener(equivalentEvent, listener, useCapture);
} else {
element.removeEventListener(type, listener, useCapture);
if (typeof(listener) === 'undefined') {
// Do nothing. Workaround for https://github.com/winjs/winjs/issues/1665
} else {
element.removeEventListener(type, listener, useCapture);
}
}
},

Expand Down

0 comments on commit f4bf991

Please sign in to comment.