joewalnes / reconnecting-websocket

A small decorator for the JavaScript WebSocket API that automatically reconnects
MIT License
4.22k stars 968 forks source link

Fixed bug with IE11 #27

Closed ManuelB closed 9 years ago

ManuelB commented 9 years ago

IE11 does not correctly execute the dispatchEvent on a div. It shows an error:

Object doesn't support this action.

The pull request prevents that by enclosing the call in a try catch

ManuelB commented 9 years ago

Sorry, this does not solve the problem.

The problem is that IE11 does not support new Event. I will write the necessary code and send another pull request.

http://stackoverflow.com/questions/19345392/why-arent-my-parameters-getting-passed-through-to-a-dispatched-event/19345563#19345563