Skip to content

Commit

Permalink
feat(reset): added 'reset' event emit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias committed Jan 14, 2016
1 parent d0ac1bd commit ce5cc8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/reset.js
Expand Up @@ -7,5 +7,7 @@ function reset (state) {
state.timestamp = undefined
state.error = undefined
cache.set(state)
return Promise.resolve()
return Promise.resolve().then(function () {
state.emitter.emit('reset')
})
}

0 comments on commit ce5cc8d

Please sign in to comment.