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 dff9400 + ec2f1ae commit d7ba0c4Copy full SHA for d7ba0c4
src/org/puremvc/java/multicore/core/model/Model.java
@@ -119,8 +119,13 @@ public void registerProxy(IProxy proxy) {
119
* @param proxy
120
* name of the <code>Proxy</code> instance to be removed.
121
*/
122
- public IProxy removeProxy(String proxy) {
123
- return (IProxy) this.proxyMap.remove(proxy);
+ public IProxy removeProxy(String proxyName) {
+ IProxy proxy = (IProxy) this.proxyMap.get(proxyName);
124
+ if(proxy != null){
125
+ this.proxyMap.remove(proxyName);
126
+ proxy.onRemove();
127
+ }
128
+ return proxy;
129
}
130
131
/**
0 commit comments