puremvc
|
|
« Reply #1 on: July 05, 2010, 09:40:11 » |
|
The reason that the Proxy is still able to send the note is that it still has a reference to the Facade even though it's been removed from the Model. It would ordinarily be available for GC after being removed from the Model if there are no other references to it, but it has added event listeners to the service, which then has a reference back to the Proxy.
In the onRemove method of the Proxy, you should cancel any calls, remove service event listeners and null the service component reference. Then, if nothing else has a reference to the Proxy, you should hear no more from it when you remove it.
-=Cliff>
|