summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-06 16:00:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-06 16:00:51 +0100
commit03cc961d02ff2512572aae9b46c1dd5f0cd8e675 (patch)
treeaee1a9c3f793946a126c71f4eda35069df079723 /scripts/toy.groovy
parentMake the activityList of objects (diff)
downloadtoy-03cc961d02ff2512572aae9b46c1dd5f0cd8e675.zip
Dress for the occasion
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 8d193fb..597f71c 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -303,9 +303,10 @@ return new Object() {
def setSessionAbort = { String r = null -> sessionAborted = r };
final activityList = [:];
- final addActivity = { String name, func ->
+ final addActivity = { String name, func, images = [] ->
activityList[name] = [
- func: func
+ func: func,
+ images: images ?: []
];
}