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.
2 parents ac1416e + b1d17be commit e4f4376Copy full SHA for e4f4376
modules/cbvalidation/ModuleConfig.cfc
@@ -59,7 +59,17 @@ component{
59
* Fired when the module is unregistered and unloaded
60
*/
61
function onUnload(){
62
-
+ var appHelperArray = controller.getSetting( "ApplicationHelper" );
63
+ var mixinToRemove = "#moduleMapping#/models/Mixins.cfm";
64
+ var mixinIndex = arrayFindNoCase( appHelperArray, mixinToRemove );
65
+
66
+ // If the mixin is in the array
67
+ if( mixinIndex ) {
68
+ // Remove it
69
+ arrayDeleteAt( appHelperArray, mixinIndex );
70
+ // Arrays passed by value in Adobe CF
71
+ controller.setSetting( "ApplicationHelper", appHelperArray );
72
+ }
73
}
74
75
/**
@@ -99,4 +109,4 @@ component{
99
109
100
110
101
111
102
-}
112
+}
0 commit comments