We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e7706 commit 715224aCopy full SHA for 715224a
system/core/dynamic/MixerUtil.cfc
@@ -161,7 +161,16 @@ component {
161
* Removes a method in a CFC
162
*/
163
function removePropertyMixin( required propertyName, scope = "variables" ){
164
- structDelete( evaluate( arguments.scope ), arguments.propertyName );
+ switch( arguments.scope ){
165
+ case "variables":
166
+ return structDelete( variables, arguments.propertyName );
167
+ break;
168
+ case "this":
169
+ structDelete( this, arguments.propertyName );
170
171
+ default:
172
+ throw( "Invalid scope" );
173
+ }
174
return this;
175
}
176
0 commit comments