From dcbadde066563c5be21aa892458f27f5e350b71a Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 1 Jul 2022 09:24:14 +0200 Subject: [PATCH] Make use.js remove the use attribute to prevent repetition --- use.js | 1 + 1 file changed, 1 insertion(+) diff --git a/use.js b/use.js index 4598fc6..7eb320f 100644 --- a/use.js +++ b/use.js @@ -10,6 +10,7 @@ const apply = (func, node) => { export const use = node => { const code = Function("return (" + node.getAttribute("use") + ")") + node.removeAttribute("use") const func = code() apply(func, node) }