npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@mattkrick/event-target-polyfill

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

install

npm i @mattkrick/event-target-polyfill

Downloadsweekly downloads

0

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability