Fix bug where EventBus handlers are removed before execution
Created by: justinanastos
Stop mutating handlers[type]
in EventBus#off
. Doing so prevents all handlers from being run if off()
is called while executing a callback.
Fixes #1773 (closed)