From 34d376cfcca1dd10a10ba3604da71796852db53d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 8 Jul 2019 19:29:10 +0100 Subject: Fix default removeRequest function --- scripts/toy/toys.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/toy/toys.groovy b/scripts/toy/toys.groovy index 034c7fc..5dff717 100644 --- a/scripts/toy/toys.groovy +++ b/scripts/toy/toys.groovy @@ -10,7 +10,7 @@ remFunc: removeFunc ]; toy.addRequestable("un$toyState".toString(), removeReq, - removeReqFunc ?: { toy.requestRelease(stateName) }, + removeReqFunc ?: { toy.requestRelease(toyState) }, { toy.stateIs(toyState) }) }; -- cgit v1.2.3