Running a pretty recent Git pull.
So I’m reading the docs, and it says:
Private events have an access type of private and can only be called from within the application by using the runEvent() method.
So I try this:
public void function list(required any event)
{
if(arguments.event.valueExists(“foo”))
{
runEvent(“products.foo”);
}
else
{
runEvent(“products.bar”);
}
}
private void function foo(required any event) { … }
private void function bar(required any event) { … }
And when running the event “list”, I get the error:
Error Messages: The method foo was not found in component …
Am I doing something wrong, or is this a bug, or is the documentation wrong… or… help?
Mark