maptype and model

quinrou's Avatar


15 Jul, 2011 06:54 AM


I have a quick question which hopefully someone here can answer.

Would you use viewMap.mapType with a i.e. a base view class which you know the views that are going to implement this base class won't be mediated. So they can have access to i.e. the models and also other injected classes.


  1. Support Staff 1 Posted by Stray on 21 Jul, 2011 03:15 PM

    Stray's Avatar

    Hi there, sorry this took a while...

    personally I don't use viewMap at all. But the key thing is that you shouldn't use the mediator map and the view map in the same project - they both listen for stage events and the performance implications are horrible.

    Why wouldn't you mediate these views?


  2. 2 Posted by quinrou on 21 Jul, 2011 08:52 PM

    quinrou's Avatar


    Thanks for your response.

    The viewMap.mapType is currently applied to an abstract class which a few view extends. so by doing this I have inject model straight into the view without having to mediate them. These views are sub view which are part of a view which is then mediated.


  3. Support Staff 3 Posted by Ondina D.F. on 02 Nov, 2011 03:11 PM

    Ondina D.F.'s Avatar

    Hi quinrou,
    Closing the thread.
    If you need more help with this,feel free to re-open this discussion. Please open new threads for new issues.

  4. Ondina D.F. closed this discussion on 02 Nov, 2011 03:11 PM.

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

Keyboard shortcuts


? 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