tryexceptpass / sofi

an OS agnostic UI module for Python
MIT License
387 stars 49 forks source link

event.srcElement not supported by all browsers #81

Closed nocarryr closed 7 years ago

nocarryr commented 7 years ago

In Firefox 50.1.0 (Ubuntu 16.04 x64) the following error occurs on websocket events:

TypeError: d3.event.srcElement is undefined[Learn More]  sofi.js:61:46

The W3C standard event property is event.target. event.srcElement was introduced in IE, but Chrome will also allow it according to: http://www.quirksmode.org/js/events_properties.html