Skip to content

Commit

Permalink
fix: fix ponyfill test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpavlovic authored and Kumar Harsh committed May 15, 2018
1 parent 71749f0 commit 949937d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom-event-polyfill.js
Expand Up @@ -5,7 +5,7 @@
// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent#Polyfill

try {
var ce = new window.CustomEvent('test');
var ce = new window.CustomEvent('test', {cancelable: true});
ce.preventDefault();
if (ce.defaultPrevented !== true) {
// IE has problems with .preventDefault() on custom events
Expand Down

0 comments on commit 949937d

Please sign in to comment.