diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-03-02 18:35:03 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-03-02 18:35:03 -0500 |
commit | 56cb0ee3ad6609b7f37140a700eb6c6d95930d71 (patch) | |
tree | e105cb93b5dfd12d2a49c40a8aa7f09b981208c8 /src | |
parent | 45798a7e43ae38eeb238ec04f397a4731c277048 (diff) |
Allow debug and naughtyDebug in client-side code, implemented with alert
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.sml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/settings.sml b/src/settings.sml index 30e925c9..f9af8879 100644 --- a/src/settings.sml +++ b/src/settings.sml @@ -238,7 +238,10 @@ val jsFuncsBase = basisM [("alert", "alert"), ("eq_time", "eq"), ("lt_time", "lt"), - ("le_time", "le")] + ("le_time", "le"), + + ("debug", "alert"), + ("naughtyDebug", "alert")] val jsFuncs = ref jsFuncsBase fun setJsFuncs ls = jsFuncs := foldl (fn ((k, v), m) => M.insert (m, k, v)) jsFuncsBase ls fun jsFunc x = M.find (!jsFuncs, x) |