[Coldbox 4.0] possible issue with Lucee?

I was getting an odd error: No matching function [_TARGETACTION] found from EventHandler.cfc for some of my handlers.

Here’s the snippet from EventHandler.cfc:

var _targetAction = variables[ arguments.method ];
var _targetResults = _targetAction( argumentCollection=argCollection );
if( !isNull( _targetResults ) ){ return _targetResults; }

Oddly enough, if I switch it to this:

var _targetResults = variables arguments.method ;

Everything executes just fine.


Anyone any idea why this happens?

probably means you are using a variable with the same name as an action

Luis Majano
Ortus Solutions, Corp
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox