summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-02-07 15:01:36 +0100
committerAraq <rumpf_a@web.de>2019-02-07 15:04:05 +0100
commit3dc270eee504c4e853daf107164bfd7e99e96a0f (patch)
tree7f9e8eef32b1e45af25af97b2d52cff3f7df397d /lib/js
parentb8f4ff8b9fd67371a638b56b70f3f56276689b95 (diff)
downloadNim-3dc270eee504c4e853daf107164bfd7e99e96a0f.tar.gz
DOM module: add more missing stuff
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/dom.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 8a5409183..79bbe76fc 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -1075,6 +1075,7 @@ proc setTimeout*(w: Window, function: proc (), pause: int): ref Interval
 proc stop*(w: Window)
 proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
 proc cancelAnimationFrame*(w: Window, id: int)
+proc onpopstate*(w: Window, ev: Event)
 
 # Node "methods"
 proc appendData*(n: Node, data: cstring)
@@ -1207,6 +1208,8 @@ proc encodeURIComponent*(uri: cstring): cstring {.importc, nodecl.}
 proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.}
 proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.}
 
+proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.}
+
 proc getElementsByClass*(n: Node; name: cstring): seq[Node] {.
   importcpp: "#.getElementsByClassName(#)", nodecl.}