Fix events when minified

`constroctor.name` does not work when the JS gets minified.