Added EventDispatcher.apply(). See #8.