summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/js/dom.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 5104712e8..5a33dfa9f 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -406,6 +406,8 @@ proc setInterval*(w: Window, function: proc (), pause: int): ref TInterval
 proc setTimeout*(w: Window, code: cstring, pause: int): ref TTimeOut
 proc setTimeout*(w: Window, function: proc (), pause: int): ref TInterval
 proc stop*(w: Window)
+proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
+proc cancelAnimationFrame*(w: Window, id: int)
 
 # Node "methods"
 proc appendChild*(n, child: Node)