- Source:
Methods
polyfillCustomEvent()
Adds CustomEvent support, if not already present in browser. Falls back to manual implementation via document.createEvent and event.initCustomEvent, if necessary.
- Source:
- See:
Example
polyfillCustomEvent()
=> makes "window.CustomEvent" and "new CustomEvent()" available, if not already present