jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 269 forks source link

xdomain events #143

Closed derekclee closed 9 years ago

derekclee commented 9 years ago

Thanks for recently adding xdomain.on(event, handler). I'm using the timeout to catch some errors. I noticed there is no off equivalent. It seems like xhook has this capability but it's not exposed. It would allow me to clean up the event listener. Does it make sense to add? Thanks.