knete.nim: change order of parameters in replaceById
This commit is contained in:
parent
87edc4cdb9
commit
330a7351f9
2 changed files with 2 additions and 2 deletions
|
|
@ -538,7 +538,7 @@ proc preventDefault*(ev: Event) {.importcpp.}
|
|||
|
||||
# ------------------ Init handling -----------------------------------
|
||||
|
||||
proc replaceById(id: cstring; newTree: Element) =
|
||||
proc replaceById*(newTree: Element; id: cstring = "ROOT") =
|
||||
let x = getElementById(id)
|
||||
x.parent.replaceChild(newTree, x)
|
||||
newTree.id = id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue