one `var` too much can make a big difference

I'm also using JavaEventEmitter which nicely wraps the formerly
used EventAdapter.