Skip to content

Commit a7b35e3

Browse files
author
pemrouz
committed
feat: parallelise loading dependencies
1 parent 7b41c7d commit a7b35e3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ const render = ripple => next => el => {
1717

1818
return attrs
1919
.map(([name, values]) => {
20-
return values.some((v, i) => {
21-
const from = attr(el, name) || ''
22-
return includes(v)(from) ? false
23-
: attr(el, name, (from + ' ' + v).trim())
24-
})
20+
return values
21+
.map((v, i) => {
22+
const from = attr(el, name) || ''
23+
return includes(v)(from) ? false
24+
: attr(el, name, (from + ' ' + v).trim())
25+
})
26+
.some(Boolean)
2527
})
2628
.some(Boolean) ? el.draw() : next(el)
2729
}

0 commit comments

Comments
 (0)