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

0.1.0 • 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 @mattkrick/event-target-polyfill

Weekly Downloads

476

Version

0.1.0

License

MIT

Unpacked Size

33.6 kB

Total Files

33

Last publish

Collaborators

  • mattkrick