Use event.dispatch.