Skip to content

Commit

Permalink
Add app.emit alias
Browse files Browse the repository at this point in the history
This was added in cf8c316.
  • Loading branch information
bates64 committed Feb 16, 2018
1 parent 6f0e846 commit c40ef71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function Choo () {

// properties that are part of the API
this.emitter = nanobus('choo.emit')
this.emit = this.emitter.emit.bind(this.emitter)

var events = { events: this._events }
if (this._hasWindow) {
Expand Down

0 comments on commit c40ef71

Please sign in to comment.