summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-06 14:59:29 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-06 14:59:29 +0100
commit6c20a8daf94307b87a0861c9e143c74cc4aca711 (patch)
tree1ae2ab401d313288d3c551d8a6d90ea6a6da5f80 /scripts/toy.groovy
parentNo writes to parent vars from metaClass methods (diff)
downloadtoy-6c20a8daf94307b87a0861c9e143c74cc4aca711.zip
Make the activityList of objects
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 = [:];