We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b41c7d commit a7b35e3Copy full SHA for a7b35e3
index.js
@@ -17,11 +17,13 @@ const render = ripple => next => el => {
17
18
return attrs
19
.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
- })
+ return values
+ .map((v, i) => {
+ const from = attr(el, name) || ''
+ return includes(v)(from) ? false
+ : attr(el, name, (from + ' ' + v).trim())
25
+ })
26
+ .some(Boolean)
27
})
28
.some(Boolean) ? el.draw() : next(el)
29
}
0 commit comments