add missing methods in js backend
This commit is contained in:
parent
d0a9fac362
commit
d5cd8e6f71
1 changed files with 2 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ type
|
||||||
# EventTarget "methods"
|
# EventTarget "methods"
|
||||||
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
|
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
|
||||||
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), options: AddEventListenerOptions)
|
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), options: AddEventListenerOptions)
|
||||||
|
proc removeEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
|
||||||
|
|
||||||
# Window "methods"
|
# Window "methods"
|
||||||
proc alert*(w: Window, msg: cstring)
|
proc alert*(w: Window, msg: cstring)
|
||||||
|
|
@ -507,6 +507,7 @@ proc replace*(loc: Location, s: cstring)
|
||||||
proc back*(h: History)
|
proc back*(h: History)
|
||||||
proc forward*(h: History)
|
proc forward*(h: History)
|
||||||
proc go*(h: History, pagesToJump: int)
|
proc go*(h: History, pagesToJump: int)
|
||||||
|
proc pushState*(h: History, stateObject, title, url: cstring)
|
||||||
|
|
||||||
# Navigator "methods"
|
# Navigator "methods"
|
||||||
proc javaEnabled*(h: Navigator): bool
|
proc javaEnabled*(h: Navigator): bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue