aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/static/script.js b/static/script.js
index d9f85aa6..e9826277 100644
--- a/static/script.js
+++ b/static/script.js
@@ -34,11 +34,7 @@ function decimal_time_to_date (time, date) {
}
/* if only there was such a thing as a let to wrap around my lambda... */
-let gensym = (function(counter) {
- return function gensym (prefix="gensym") {
- return prefix + ++counter;
- }
-})(0);
+const gensym = (counter => (prefix="gensym") => prefix + ++counter)(0)
/* start and end time for calendar page */
let start_time = new Date();