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

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Bug Report / [ADDED] Suggestion: Add static function hasCore() to Facade on: June 02, 2008, 07:20:32
Hi Cliff,

     I've been working with PureMVC framework for a while. Thanks for your wonderful works.
     Today I ran into a problem that there is no API to decide whether an instance of Facade with specific key exists without creating new one.
     So I suggest to add a simple hasCore (static) function to Facade class of PureMVC Multicore version:

               /**
       * @param multitonKey of the Core to remove
       */      
      public static function hasCore(key:String):Boolean {
         return instanceMap[ key ] != null;
      }

     Does it make sense?
     Or we have better way to do that?

     Thanks!

Jinni
Pages: [1]