Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Some question in Facade.as....  (Read 3035 times)
mani
Jr. Member
**
Posts: 15


View Profile Email
« 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.
« Last Edit: July 09, 2008, 05:56:27 by mani » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print