How about using `shallowCopy()` instead of `slice()` here?

Also `eventHandlersSlice` is not a good name - it is too specific to the implementation.
`eventHandlersCopy` or something would seem to provide more context

I think a comment explaining why the copy is being made would also be helpful for future maintenance.