diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-06 16:00:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-06 16:00:51 +0100 |
commit | 03cc961d02ff2512572aae9b46c1dd5f0cd8e675 (patch) | |
tree | aee1a9c3f793946a126c71f4eda35069df079723 /scripts/toy.groovy | |
parent | Make the activityList of objects (diff) | |
download | toy-03cc961d02ff2512572aae9b46c1dd5f0cd8e675.zip |
Dress for the occasion
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 5 |
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 ?: [] ]; } |