PureMVC Architects Lounge

PureMVC Manifold => Bug Report => Topic started by: mquickform on January 19, 2009, 10:35:22



Title: initialization in Facade
Post by: mquickform on January 19, 2009, 10:35:22
I understand that statics are not accessible when you extend a class, such as the Facade, but I am getting errors as soon as I compile, and I think that a small modification is needed:

:
// The Multiton Facade instanceMap.
private static var instanceMap : Hash<IFacade>;

Change to:

:
// The Multiton Facade instanceMap.
private static var instanceMap : Hash<IFacade> = new Hash();

I am just starting to use MC and I am trying to convert one of my projects.
Please correct me if I am wrong. It's seems strange that no one has reported the same problem.


Title: Re: initialization in Facade
Post by: puremvc on January 19, 2009, 01:06:53
Can you tell us how you are using it and where and what error you get?

The unit tests seem to run ok, and the first FacadeTest method checks getInstance(), and asserts that it got back an IFacade instance.

http://trac.puremvc.org/PureMVC_Haxe_MultiCore_UnitTests/browser/tags/UnitTests_1_0/src/org/puremvc/haxe/multicore/patterns/facade/FacadeTest.hx

-=Cliff>