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: Mediator name, why so complicated ?  (Read 5568 times)
Flapflap
Courseware Beta
Newbie
***
Posts: 4


View Profile Email
« on: December 10, 2007, 09:52:55 »

I there,

I'm coming from other frameworks such as LowRA and wonder why Mediator name are so complicated to implement ?

For each mediator you create you have to copy the override function  getMediatorName with SAME code each time, wich is quite annoying...

Why not have a private instance variable for name as this :

:
_sName : String // The mediator name

public function Mediator( document : Object, name : String) : void
{
 _sName = name;
...

public function getMEdiatorName() : String
{
 return _sName;
}

Thanks
Logged
Pages: [1]
Print