Changes Emitter implementation to be universal. document, window, Element and other classes that implement the EventTarget interface are not available in web workers or Node.js. XMLHttpRequest is available in workers, but not Node.js.
Implementation is based on EventTarget with deferred callback executions.
Changes Emitter implementation to be universal.
document
,window
,Element
and other classes that implement theEventTarget
interface are not available in web workers or Node.js.XMLHttpRequest
is available in workers, but not Node.js.Implementation is based on EventTarget with deferred callback executions.
Fixes #11.