krambuhl / custom-event-polyfill

Polyfill for creating CustomEvents on IE9/10/11 if native implementation is missing.
MIT License
112 stars 19 forks source link

Add "Usage" section #7

Closed catamphetamine closed 7 years ago

catamphetamine commented 7 years ago

First, it's not "Useage". Second, how should one use it? I suppose something like this (should be in the readme):

require('custom-event-polyfill')
// or
import CustomEvent from 'custom-event-polyfill'
catamphetamine commented 7 years ago

And you should probably add return CustomEvent in the end.

krambuhl commented 7 years ago

These are good additions, seems like you could make the PR instead of nitpicking my spelling skills 😄