PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: mani on July 09, 2008, 12:08:47



Title: Some question in Facade.as....
Post by: mani on July 09, 2008, 12:08:47
Hello, nameless hero, thanks for your time to have a look~     
It's a section code of Facade.as, when it register Mediator, it judge whether (view != null),
but when it register Command and Proxy, it doesn't check.
Is that wrong?
public function registerCommand(noteName:String, commandClassRef:Class):void
      {
         controller.registerCommand(noteName, commandClassRef);
      }
      
      public function registerMediator(mediator:IMediator):void
      {
         if(view != null) view.registerMediator(mediator);
      }
      
      public function registerProxy(proxy:IProxy):void
      {
         model.registerProxy(proxy);
      }

Best regards~
mani.


Title: Re: Some question in Facade.as....
Post by: puremvc on July 10, 2008, 05:53:31
Slackness is what it is.

Somebody should be taken out behind the barn...

Actually, it shouldn't do that check, as it will fail silently. Doubt it happens much, but I'll clean it up with the next minor rev (which has been waiting to collect little bits like this)

-=Cliff>