Skip to content

Commit 485533b

Browse files
author
pemrouz
committed
fix: correct return value
1 parent 6c150b9 commit 485533b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ var render = function render(ripple) {
104104
css.map(function (d) {
105105
return (0, _raw2.default)('style[resource="' + d + '"]', shadow ? root : head) || (0, _el2.default)('style[resource=' + d + ']');
106106
}).map(function (d, i) {
107-
return d.innerHTML = styles[i];
107+
return d.innerHTML = styles[i], d;
108108
}).filter((0, _not2.default)((0, _by2.default)('parentNode'))).map(function (d) {
109109
return shadow ? root.insertBefore(d, root.firstChild) : head.appendChild(d);
110110
});

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const render = ripple => next => host => {
3636
// reuse or create style tag
3737
css
3838
.map(d => raw(`style[resource="${d}"]`, shadow ? root : head) || el(`style[resource=${d}]`))
39-
.map((d, i) => d.innerHTML = styles[i])
39+
.map((d, i) => (d.innerHTML = styles[i], d))
4040
.filter(not(by('parentNode')))
4141
.map(d => shadow ? root.insertBefore(d, root.firstChild) : head.appendChild(d))
4242

0 commit comments

Comments
 (0)