Skip to content

Commit

Permalink
chore: simplify component signature (websdk/vanilla#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Sep 3, 2016
1 parent 02804e0 commit f4e8f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const render = ripple => next => el => {
.filter(not(is.in(css)))
.map(d => attr('css', (str(attr('css')(el)) + ' ' + d).trim())(el))

var node = next(el)
const node = next(el)

return !node || !node.state ? undefined
: (features
.map(key('body'))
.map(d => d.call(node.shadowRoot || node, node.state))
.map(d => d.call(node.shadowRoot || node, node.shadowRoot || node, node.state))
, node)
}

Expand Down

0 comments on commit f4e8f52

Please sign in to comment.