diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-22 21:07:54 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-22 21:07:54 +0200 |
commit | 98c6b86b3f2d66a67d5fc25ff78d8a5a228f28a6 (patch) | |
tree | 2a8de456757cfe238341e7d7c5723d8d7acf1eb6 /src/html/catom.nim | |
parent | 814b7b000af414696da6f5d8613fd21a1e104ef4 (diff) | |
download | chawan-98c6b86b3f2d66a67d5fc25ff78d8a5a228f28a6.tar.gz |
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.
Diffstat (limited to 'src/html/catom.nim')
-rw-r--r-- | src/html/catom.nim | 3 |
1 files changed, 1 insertions, 2 deletions
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) |