Skip to content

Commit

Permalink
fix(choo.emit): pass all arguments (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungoldman authored Oct 29, 2019
1 parent 782d528 commit f59f18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function expose (opts) {
window.choo = {}

window.choo.state = state
window.choo.emit = function (eventName, data) {
emitter.emit(eventName, data)
window.choo.emit = function () {
emitter.emit.apply(emitter, arguments)
}
window.choo.on = function (eventName, listener) {
emitter.on(eventName, listener)
Expand Down

0 comments on commit f59f18e

Please sign in to comment.