teamcfadvance / cfstatic

CfStatic is a framework for managing the inclusion and packaging of CSS and JavaScript in CFML applications.
https://teamcfadvance.github.io/cfstatic
MIT License
102 stars 35 forks source link

Lucee 'Modern local scope' mode breaks CfStatic #111

Open DominicWatson opened 9 years ago

DominicWatson commented 9 years ago

Running you application with Lucee's 'Modern local scope' mode enabled, breaks CfStatic. Investigage and fix.

I've not seen this in action but reporting it on behalf of others. My guess is that the questionable decision to not use the arguments scope anywhere is the root of the problem - but that is just a guess.

DominicWatson commented 9 years ago

A potential fix to try is adding localmode=false to each and every method in cfstatic:

<cffunction name="myfunction" ... localMode="false">