Content-Length: 255131 | pFad | http://github.com/fnando/sparkline/commit/e7f6751f17f54e61aa5e5b779ccc80720915d7f4

65 Coerce NodeList to an array before iterating elements (#2) · fnando/sparkline@e7f6751 · GitHub
Skip to content

Commit e7f6751

Browse files
authored
Coerce NodeList to an array before iterating elements (#2)
2 parents d3c83b7 + f0bdab0 commit e7f6751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sparkline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function getY(max, height, diff, value) {
33
}
44

55
function removeChildren(svg) {
6-
svg.querySelectorAll("*").forEach(element => svg.removeChild(element));
6+
[...svg.querySelectorAll("*")].forEach(element => svg.removeChild(element));
77
}
88

99
function defaultFetch(entry) {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/fnando/sparkline/commit/e7f6751f17f54e61aa5e5b779ccc80720915d7f4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy