From 98c6b86b3f2d66a67d5fc25ff78d8a5a228f28a6 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 22 Jul 2024 21:07:54 +0200 Subject: buffer, dom, event: JS binding for dispatchEvent * move dispatchEvent to event, add a JS binding * only reshape if the document was actually invalidated after event dispatch/interval call/etc. --- src/html/catom.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/html/catom.nim') diff --git a/src/html/catom.nim b/src/html/catom.nim index b6dced60..f22d74ef 100644 --- a/src/html/catom.nim +++ b/src/html/catom.nim @@ -197,8 +197,7 @@ func toStaticAtom*(factory: CAtomFactory; atom: CAtom): StaticAtom = return StaticAtom(i) return atUnknown -var getFactory* {.compileTime.}: proc(ctx: JSContext): CAtomFactory {.nimcall, - noSideEffect.} +var getFactory*: proc(ctx: JSContext): CAtomFactory {.nimcall, noSideEffect.} proc toAtom*(ctx: JSContext; atom: StaticAtom): CAtom = return ctx.getFactory().toAtom(atom) -- cgit 1.4.1-2-gfad0