Conflict in docs for mediating the contextView

elliot's Avatar

elliot

01 Sep, 2012 12:37 AM

There's a conflict in these 2 docs:

https://github.com/robotlegs/robotlegs-framework/wiki/Best-Practice... (Mapping the Main Application (contextView) Mediator section)
http://knowledge.robotlegs.org/kb/reference-mvcs-implementation/can...

The Best Practices doc suggests that it's necessary to call mediatorMap.createMediator( contextView ) after mapping the contextView with a Mediator.

The KB article doesn't list the same requirement. It says, "Because the contextView is generally already on stage at the time of mapping, Robotlegs creates a mediator for the contextView immediately as soon as you map it…"

In my test calling the createMediator method is NOT required.

  1. Support Staff 1 Posted by Ondina D.F. on 01 Sep, 2012 09:56 AM

    Ondina D.F.'s Avatar

    Hi Elliot,

    Thanks for noticing that!

    Manually creation of a mediator for the contextView has been made obsolete by this:

    2009-10-19:
    Added automatic creation of mediator for contextView

    https://github.com/robotlegs/robotlegs-framework/commit/e99c6f472e9...

    I’ve edited the Best Practice Wiki to reflect those changes.

    Are there any other inconsistencies that you've noticed?

    Cheers,
    Ondina

  2. Ondina D.F. closed this discussion on 03 Sep, 2012 08:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac