Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
public static function removeView( key:String ):void{ var view:View = getInstance( key ) as View; if (view != null) { for (var mediator:String in view.mediatorMap) { view.removeMediator( mediator ); } } delete instanceMap[ key ];}
public static function removeCore( key:String ) : void{ if (instanceMap[ key ] == null) return; Model.removeModel( key ); View.removeView( key ); Controller.removeController( key ); delete instanceMap[ key ];}
public static function removeModel( key:String ):void{ delete instanceMap[ key ];}
public function removeProxy( proxyName:String ) : IProxy{ var proxy:IProxy = proxyMap [ proxyName ] as IProxy; if ( proxy ) { proxyMap[ proxyName ] = null; proxy.onRemove(); } return proxy;}