changeset 1652:1c8456f0cf8c

Undo change to dyn() in runtime system
author Adam Chlipala <adam@chlipala.net>
date Sat, 31 Dec 2011 15:24:44 -0500
parents dfc854e478bb
children 1a8f7d667c00
files lib/js/urweb.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/js/urweb.js	Sat Dec 31 13:31:00 2011 -0500
+++ b/lib/js/urweb.js	Sat Dec 31 15:24:44 2011 -0500
@@ -812,9 +812,9 @@
         } else {
             firstChild = document.createElement("span");
             firstChild.innerHTML = html;
+            runScripts(firstChild);
             if (x.parentNode)
                 x.parentNode.insertBefore(firstChild, x);
-            runScripts(firstChild);
         }
     };