diff --git a/best-practices.md b/best-practices.md index e3410231bd..14b4de271e 100644 --- a/best-practices.md +++ b/best-practices.md @@ -7,7 +7,8 @@ - `self._api = opts.api` `opts.api` is an object which contains functions/features that the module needs. - `opts.events` contains events manager the module will listen on. - A module trigger events using `event` property: -  `self.event = new EventManager()` . Events can then be triggered: +  `self.event = new EventManager()`. + Events can then be triggered:  `self.event.trigger('eventName', [param1, param2])` - `self._view` is the HTML view renderered by `yo-yo` in the `render` function. - `render()` this function should be called: