nim js -o:app_bug.js -d:case_ok app_bug.nim: no bug
nim js -o:app_bug.js -d:case_bug1 app_bug.nim: when you click the button a few times, the foreign node gets (wrongly) deleted
EDIT: it looks like this bug also affects other scenarios, not just when it invovles a setForeignNodeId (eg i've seen this occur on a div which contains some canvas)
nim js -o:app_bug.js -d:case_ok app_bug.nim: no bug nim js -o:app_bug.js -d:case_bug1 app_bug.nim: when you click the button a few times, the foreign node gets (wrongly) deleted
index.html:
app_bug.nim:
notes