add router.emit and router= for compatibility with v0.12