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]
Author Topic: [WILL ADD] Suggestion for next version  (Read 10313 times)
Jr. Member
Posts: 18

View Profile Email
« 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 ;)
Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 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.

Pages: [1]