diff lib/js/urweb.js @ 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 1bfd793e7eb8
children d05299e561c8
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);
         }
     };