@d1plo1d/event-target-polyfill
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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')

Package Sidebar

Install

npm i @d1plo1d/event-target-polyfill

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

33.7 kB

Total Files

31

Last publish

Collaborators

  • d1plo1d