summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-03-02 18:35:03 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-03-02 18:35:03 -0500
commit7119e3b05218f975fe8b3f9a4c5fd4a680e05933 (patch)
treee105cb93b5dfd12d2a49c40a8aa7f09b981208c8 /src
parent0c9fe50d399890bb56ed61a1d4030c1ea9a95a69 (diff)
Allow debug and naughtyDebug in client-side code, implemented with alert
Diffstat (limited to 'src')
-rw-r--r--src/settings.sml5
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)