Skip to content

Commit

Permalink
feat(events): return "store" for chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciagarcia committed Jun 20, 2015
1 parent aea8610 commit e10db1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/add-listener-to-one-or-many.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ function addListenerToOneOrMany (state, eventName, one, handler) {
state.emitter.on(eventName, handler)
}
}

return this
}
2 changes: 2 additions & 0 deletions off.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ module.exports = off
*/
function off (state, eventName, handler) {
state.emitter.removeListener(eventName, handler)

return this
}

0 comments on commit e10db1b

Please sign in to comment.