aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index ba73e744..8b6e2a75 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -812,9 +812,9 @@ function dyn(pnode, s) {
} else {
firstChild = document.createElement("span");
firstChild.innerHTML = html;
- runScripts(firstChild);
if (x.parentNode)
x.parentNode.insertBefore(firstChild, x);
+ runScripts(firstChild);
}
};