summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
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 ?: []
];
}