diff --git a/system/core/dynamic/MixerUtil.cfc b/system/core/dynamic/MixerUtil.cfc index cc792dcc4..75b830897 100644 --- a/system/core/dynamic/MixerUtil.cfc +++ b/system/core/dynamic/MixerUtil.cfc @@ -161,7 +161,16 @@ component { * Removes a method in a CFC */ function removePropertyMixin( required propertyName, scope = "variables" ){ - structDelete( evaluate( arguments.scope ), arguments.propertyName ); + switch( arguments.scope ){ + case "variables": + return structDelete( variables, arguments.propertyName ); + break; + case "this": + structDelete( this, arguments.propertyName ); + break; + default: + throw( "Invalid scope" ); + } return this; }