summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 295e500..8d193fb 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -304,7 +304,9 @@ return new Object() {
final activityList = [:];
final addActivity = { String name, func ->
- activityList[name] = func;
+ activityList[name] = [
+ func: func
+ ];
}
final namedEvents = [:];