summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8b6e2a75..ba73e744 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);
}
};