Skip to content

Commit

Permalink
fix: correct return value
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Jul 25, 2016
1 parent 6c150b9 commit 485533b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var render = function render(ripple) {
css.map(function (d) {
return (0, _raw2.default)('style[resource="' + d + '"]', shadow ? root : head) || (0, _el2.default)('style[resource=' + d + ']');
}).map(function (d, i) {
return d.innerHTML = styles[i];
return d.innerHTML = styles[i], d;
}).filter((0, _not2.default)((0, _by2.default)('parentNode'))).map(function (d) {
return shadow ? root.insertBefore(d, root.firstChild) : head.appendChild(d);
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const render = ripple => next => host => {
// reuse or create style tag
css
.map(d => raw(`style[resource="${d}"]`, shadow ? root : head) || el(`style[resource=${d}]`))
.map((d, i) => d.innerHTML = styles[i])
.map((d, i) => (d.innerHTML = styles[i], d))
.filter(not(by('parentNode')))
.map(d => shadow ? root.insertBefore(d, root.firstChild) : head.appendChild(d))

Expand Down

0 comments on commit 485533b

Please sign in to comment.