Merge pull request #7064 from grazil/devel
add missing methods in js backend
This commit is contained in:
commit
fc056015fd
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*[T](h: History, stateObject: T, 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