Randy Troppmann's Avatar

Randy Troppmann

05 May, 2010 08:24 PM

In my view Mediator, eventMap.unmapListener in onRemove() method does not seem to be removing the listeners. I have set the auto-deletion to false in the mediatorMap and still I get multiple listeners when I add and remove the view from the display list. Anyone seeing this?

  1. Support Staff 1 Posted by Shaun Smith on 05 May, 2010 08:50 PM

    Shaun Smith's Avatar

    Hmm.. that sounds strange. Is autoCreate true and autoRemove false?

    Side note: if autoRemove false, the EventMap cleanup will only happen when you manually remove the mediator.

    Regardless, multiple mediators should not be created for the same view component if autoRemove is false.

    Any chance that you could post some stripped down code that shows the issue?

  2. 2 Posted by Randy Troppmann on 06 May, 2010 07:25 PM

    Randy Troppmann's Avatar

    I have failed in recreating the problem in a simple example. That means something funky is going on. Stay tuned ...

  3. Stray closed this discussion on 10 Feb, 2011 05: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