Skip to content

Commit

Permalink
Fixes customEvent polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
romellem committed Aug 22, 2020
1 parent a40b36b commit 6fc46da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/custom-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const createEmptyCustomEvent = (event_name) => {
// IE doesn't support `CustomEvent` constructor
// @link https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Browser_compatibility
event = document.createEvent(customEvent);
event['init' + CustomEvent](event_name, true, true);
event['init' + customEvent](event_name, true, true);
}

return event;
Expand Down

0 comments on commit 6fc46da

Please sign in to comment.