From 2f74b628f3c91860860cc19fc07db5c304e8e6ed Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 1 Jul 2023 23:26:17 +0200 Subject: Use separate flag for adding getset instead of repr Still a hack, but maybe more reliable? --- src/html/dom.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html') diff --git a/src/html/dom.nim b/src/html/dom.nim index bf8e0fcc..ee4d5620 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2990,11 +2990,11 @@ proc registerElements(ctx: JSContext, nodeCID: JSClassID) = let elementCID = ctx.registerType(Element, parent = nodeCID) const extra_getset = getElementReflectFunctions() let htmlElementCID = ctx.registerType(HTMLElement, parent = elementCID, - extra_getset = extra_getset) + has_extra_getset = true, extra_getset = extra_getset) template register(t: typed, tags: set[TagType]) = const extra_getset = getReflectFunctions(tags) ctx.registerType(t, parent = htmlElementCID, - extra_getset = extra_getset) + has_extra_getset = true, extra_getset = extra_getset) template register(t: typed, tag: TagType) = register(t, {tag}) register(HTMLInputElement, TAG_INPUT) -- cgit 1.4.1-2-gfad0