Skip to content

Commit

Permalink
fix: update return value to be element
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Jul 24, 2016
1 parent 09ee9a3 commit 5534e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ var render = function render(ripple) {

var node = next(el);

return !node || !node.state ? undefined : features.map((0, _key2.default)('body')).map(function (d) {
return !node || !node.state ? undefined : (features.map((0, _key2.default)('body')).map(function (d) {
return d.call(node.shadowRoot || node, node.state);
});
}), node);
};
};
};
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ const render = ripple => next => el => {
var node = next(el)

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

const log = require('utilise/log')('[ri/features]')
Expand Down

0 comments on commit 5534e63

Please sign in to comment.