PureMVC Architects Lounge

PureMVC Manifold => Bug Report => Topic started by: creynders on August 27, 2008, 02:24:20



Title: [WILL ADD] Suggestion for next version
Post by: creynders on August 27, 2008, 02:24:20
Just a (very small) suggestion for the next big release of PureMVC:
It'd be very handy if the Facade's registerMediator and registerProxy methods would return the instance of the mediator/proxy which gets registered.
That way you can write this:
:
mediator = facade.registerMediator( new SomeMediator( someView ) )instead of:
:
mediator = new SomeMediator( someView );
facade.registerMediator( mediator )

I know, it's a silly and small thing, but everything which speeds up coding is welcome ;)


Title: Re: Suggestion for next version
Post by: puremvc on August 27, 2008, 08:16:20
You bet. Excellent idea.

I'm going to move this over to the bug report forum, even though its not a bug, since that drives the new versions now. There's not a lot of feature creep allowed, but this will be useful.

Thanks,
-=Cliff>