Rename _publishEvent to dispatchEvent. Close #168. Thanks @talltyler.