mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
12 lines
381 B
Nim
12 lines
381 B
Nim
#[
|
|
autogenerated by docgen
|
|
loc: /home/runner/work/Nim/Nim/lib/js/dom.nim(30, 17)
|
|
rdoccmd: -b:js -r:off
|
|
]#
|
|
import std/assertions
|
|
import "/home/runner/work/Nim/Nim/lib/js/dom.nim"
|
|
{.line: ("/home/runner/work/Nim/Nim/lib/js/dom.nim", 30, 17).}:
|
|
proc example(e: Event) = echo "Document is unloaded"
|
|
document.addEventListener("unload", example) # You can also use "beforeunload".
|
|
|