changeset 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
files lib/ur/basis.urs src/monoize.sml
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ur/basis.urs	Fri Dec 06 13:59:39 2013 +0400
+++ b/lib/ur/basis.urs	Fri Dec 06 14:52:47 2013 +0400
@@ -783,7 +783,7 @@
              -> tag [Code = transaction xbody] body [] [] []
 
 val activeHead : unit
-             -> tag [Code = transaction xhead] head [] [] []
+             -> tag [Code = transaction unit] head [] [] []
 
 val head : unit -> tag [] html head [] []
 val title : unit -> tag [] head [] [] []
--- 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")