Skip to content

mattkrick/event-target-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

event-target-polyfill

EventTarget polyfill for IE11 and Edge from https://developer.mozilla.org/en-US/docs/Web/API/EventTarget#Example

Why?

Because Microsoft has been shitting the bed since forever.

What's it do?

The exact same thing that as window.EventTarget

Installation

@mattkrick/event-target-polyfill

import EventTargetPolyfill from '@mattkrick/event-target-polyfill'

window.EventTarget = EventTargetPolyfill
const foo = new EventTarget('open')

Releases

No releases published

Packages

No packages published