diff options
author | Vladimir Shabanov <vshabanoff@gmail.com> | 2012-04-11 03:05:26 +0400 |
---|---|---|
committer | Vladimir Shabanov <vshabanoff@gmail.com> | 2012-04-11 03:05:26 +0400 |
commit | 10299ec87da6adeca1068df2ec8e1e5afce7bb85 (patch) | |
tree | 64f3c34e18df09455941c3be3d555829a3cb3efa /src/monoize.sml | |
parent | 4b4d925a619b9306f0389d726adbfc391fb5ee1b (diff) |
Saving uw_event for all events (so stopPropagation works everywhere)
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 5e0e2599..3477fa99 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -3112,14 +3112,12 @@ fun monoExp (env, st, fm) (all as (e, loc)) = end | (L'.TFun (dom, _), _) => let - val s' = " " ^ lowercaseFirst x ^ "='" - val (e, s') = + val e = case #1 dom of - L'.TRecord [] => ((L'.EApp (e, (L'.ERecord [], loc)), loc), s') - | _ => ((L'.EApp ((L'.EApp (e, (L'.EFfiApp ("Basis", "kc", []), loc)), - loc), (L'.ERecord [], loc)), loc), - s' ^ "uw_event=event;") - val s' = s' ^ "exec(" + L'.TRecord [] => (L'.EApp (e, (L'.ERecord [], loc)), loc) + | _ => (L'.EApp ((L'.EApp (e, (L'.EFfiApp ("Basis", "kc", []), loc)), + loc), (L'.ERecord [], loc)), loc) + val s' = " " ^ lowercaseFirst x ^ "='uw_event=event;exec(" in ((L'.EStrcat (s, (L'.EStrcat ( |