Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
July 28, 2017, 08:01:40 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: initialization in Facade  (Read 14906 times)
mquickform
Newbie
*
Posts: 1


View Profile
« on: January 19, 2009, 10:35:22 AM »

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:

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

Change to:

Code:
// 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.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2870



View Profile WWW
« Reply #1 on: January 19, 2009, 01:06:53 PM »

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>
Logged
Pages: [1]
Print
Jump to: