diff src/monoize.sml @ 1925:15802a00816c

activeHead: don't modify the head. just execute the code provided
author Sergey Mironov <grrwlf@gmail.com>
date Fri, 06 Dec 2013 14:52:47 +0400
parents b44138e6a3bf
children 44f607a7f4cd
line wrap: on
line diff
--- a/src/monoize.sml	Fri Dec 06 13:59:39 2013 +0400
+++ b/src/monoize.sml	Fri Dec 06 14:52:47 2013 +0400
@@ -3604,9 +3604,9 @@
                         (case attrs of
 			     [("Code", e, _)] =>
 			     ((L'.EStrcat
-                                   ((L'.EPrim (Prim.String ("<script type=\"text/javascript\">active(execD(")), loc),
+                                   ((L'.EPrim (Prim.String ("<script type=\"text/javascript\">execD(")), loc),
                                     (L'.EStrcat ((L'.EJavaScript (L'.Script, e), loc),
-                                                 (L'.EPrim (Prim.String ("))</script>")), loc)), loc)), loc),
+                                                 (L'.EPrim (Prim.String (")</script>")), loc)), loc)), loc),
 			      fm)
                            | _ => raise Fail "Monoize: Bad <activeHead> attributes")