diff src/monoize.sml @ 800:e92cfac1608f

Proper lifting of MonoEnv stored expressions; avoidance of onchange clobbering
author Adam Chlipala <adamc@hcoop.net>
date Thu, 14 May 2009 13:18:31 -0400
parents 2c463eee89fa
children ef6de4075dc1
line wrap: on
line diff
--- a/src/monoize.sml	Thu May 14 11:04:56 2009 -0400
+++ b/src/monoize.sml	Thu May 14 13:18:31 2009 -0400
@@ -2498,6 +2498,10 @@
 
                         val assgns = List.mapPartial
                                      (fn ("Source", _, _) => NONE
+                                       | ("Onchange", e, _) =>
+                                         SOME (strcat [str "addOnChange(d,",
+                                                       (L'.EJavaScript (L'.Script, e, NONE), loc),
+                                                       str ")"])
                                        | (x, e, _) =>
                                          SOME (strcat [str ("d." ^ lowercaseFirst x ^ "="),
                                                        (L'.EJavaScript (L'.Script, e, NONE), loc),