Closed david-strahl closed 1 year ago
The Legend update function always checks all DOM elements for the colorcoded tag. To color just one element is thus very expensive.
update
colorcoded
Introduce a function colorize that just colors the element that is passed.
colorize
Done! Legend.colorize(selector) now allows passing arbitrary CSS selection strings or individual elements.
Legend.colorize(selector)
The Legend
update
function always checks all DOM elements for thecolorcoded
tag. To color just one element is thus very expensive.Introduce a function
colorize
that just colors the element that is passed.