John Wilson
06/26/2022, 5:53 PMDaniel Mejia
06/26/2022, 6:32 PMgetFunctionList().keyExists("reMatch")
John Wilson
06/26/2022, 7:05 PMDaniel Mejia
06/26/2022, 7:07 PMJohn Wilson
06/26/2022, 7:09 PMgetFunctionList()
is returning all of the built-in functions, but there is no way to see a callbackDaniel Mejia
06/26/2022, 7:10 PMJohn Wilson
06/26/2022, 7:13 PMisCustomFunction()
doesn't identify callbacksDaniel Mejia
06/26/2022, 7:16 PMDaniel Mejia
06/26/2022, 7:30 PMScott Steinbeck
06/26/2022, 8:23 PMgetFunctionList
is lucee specificScott Steinbeck
06/26/2022, 8:25 PMisCustomFunction
failed, do you have a use case example?Scott Steinbeck
06/26/2022, 8:29 PMDaniel Mejia
06/26/2022, 8:37 PMJohn Wilson
06/26/2022, 8:44 PMif (isCustomFunction(audit.valueMap[change.key])){
oldValue = audit.valueMap[change.key].valueMap(change.old);
newValue = audit.valueMap[change.key].valueMap(change.new);
} else if (isStruct(audit.valueMap)){
oldValue = audit.valueMap[change.key][change.old].value
newValue = a
Scott Steinbeck
06/26/2022, 8:48 PMaudit.valueMap[change.key](change.old)
instead of
audit.valueMap[change.key].valueMap(change.old);
Scott Steinbeck
06/26/2022, 8:49 PMaudit.valueMap[change.key]().valueMap(change.old);
John Wilson
06/26/2022, 8:50 PMScott Steinbeck
06/26/2022, 8:50 PMJohn Wilson
06/26/2022, 8:50 PMScott Steinbeck
06/26/2022, 8:51 PMaliaspooryorik
doThing(required function callBack){...}
aliaspooryorik
doThing
can accept a function or a struct then you getting a very confusing API which should be two functions with clearly defined arguments.aliaspooryorik
zackster
06/27/2022, 4:22 PMJohn Wilson
06/27/2022, 4:23 PMJohn Wilson
06/27/2022, 4:27 PMaliaspooryorik
valuesMap = structMap(...)
?aliaspooryorik
John Wilson
06/27/2022, 4:33 PMaliaspooryorik