unscoped vars in ColdBox core

Luis,

While trying to figure why I was getting an error with my application, which I not long posted in here.

I found this, and there is an un-scoped error here

var states = getInterceptionStates();

var unregistered = false;

// Else, unregister from all states

for(key in states){

if( len(trim(state)) eq 0 OR trim(state) eq key ){

structFind(states,key).unregister(getColdboxOCM().INTERCEPTOR_CACHEKEY_PREFIX & arguments.interceptorName);

unregistered = true;

}

}

return unregistered;

As well as this in CacheConfig

for(key in arguments){

instance[key] = arguments[key];

}

return this;

Regards,

Andrew Scott

http://www.andyscott.id.au/

Luis,

While trying to figure why I was getting an error with my application, which I not long posted in here.

I found this, and there is an un-scoped error here

var states = getInterceptionStates();

var unregistered = false;

// Else, unregister from all states

for(key in states){

if( len(trim(state)) eq 0 OR trim(state) eq key ){

structFind(states,key).unregister(getColdboxOCM().INTERCEPTOR_CACHEKEY_PREFIX & arguments.interceptorName);

unregistered = true;

}

}

return unregistered;

As well as this in CacheConfig

for(key in arguments){

instance[key] = arguments[key];

}

return this;

Regards,

Andrew Scott

http://www.andyscott.id.au/

No problems.

Regards,

Andrew Scott

http://www.andyscott.id.au/