This commit is contained in:
Mathias Buus
2017-03-31 11:22:59 +02:00
committed by Yoshua Wuyts
parent 205b7e33dd
commit bccd2db942
+1 -1
View File
@@ -254,7 +254,7 @@ Initialize a new `choo` instance. `opts` can also contain the following values:
### `app.use(callback(state, emitter))`
Call a function and pass it a `state` and `emitter`. `emitter` is an instance
of [nanobus](https://github.com/yoshuawuyts/nanobus/). You can listen to
messages by calling `emitter.on()` and emit messages by calling `bus.emit()`.
messages by calling `emitter.on()` and emit messages by calling `emitter.emit()`.
Choo fires messages when certain events happen:
- __`.on('DOMContentLoaded')`__: when the DOM has succesfully finished loading