From 03cc961d02ff2512572aae9b46c1dd5f0cd8e675 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 6 Jul 2019 16:00:51 +0100 Subject: Dress for the occasion --- scripts/toy.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/toy.groovy') 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 ?: [] ]; } -- cgit v1.2.3