knete.nim: change order of parameters in replaceById

This commit is contained in:
Andreas Rumpf 2018-06-10 12:09:30 +02:00
commit 330a7351f9
2 changed files with 2 additions and 2 deletions

View file

@ -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