Skip to content

Commit

Permalink
feat: expose state and node first hand
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Apr 14, 2018
1 parent 0301710 commit 1d2e3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -188,7 +188,7 @@ function event(node) {
const type = o.type.split('.').shift()
if (!node.listeners[type])
node.addEventListener(type, node.listeners[type] =
event => (!event.detail || !event.detail.emitted ? emit(type, event) : 0)
event => (!event.detail || !event.detail.emitted ? emit(type, [event, node.state, node]) : 0)
)
}

Expand Down

0 comments on commit 1d2e3aa

Please sign in to comment.