Make use.js remove the use attribute to prevent repetition

This commit is contained in:
Talia 2022-07-01 09:24:14 +02:00
parent a1178b916a
commit dcbadde066

1
use.js
View file

@ -10,6 +10,7 @@ const apply = (func, node) => {
export const use = node => { export const use = node => {
const code = Function("return (" + node.getAttribute("use") + ")") const code = Function("return (" + node.getAttribute("use") + ")")
node.removeAttribute("use")
const func = code() const func = code()
apply(func, node) apply(func, node)
} }