Unmapping and mapping again

matej's Avatar


29 Apr, 2013 08:33 AM


I have a situation where I have one signal mapped as singleton. And in one command I inject that signal and dispatch from it.
Than later, when I unmap that signal from injector, and then map it again to other instance of the same signal with toValue method, I dont get that newly mapped signal injected into the command.

I thought unmap deletes all stuff from before, and toValue also creates a singleton mapping. If not, is there a way to map with toValue method and to be a singleton?

  1. Support Staff 1 Posted by creynders on 29 Apr, 2013 10:20 AM

    creynders's Avatar

    Just took a look at the SignalCommandMap code and I'm pretty sure it's a bug. As far as I can tell the SCM never releases a signal instance once it's registered.

    However, I just rewrote the SCM entirely since the base classes for the command maps have been rewritten too. I issued a pull request, but it isn't accepted yet. Also, we're in the process of creating a new beta of RL (it's been delayed due to a number of reasons, too boring to explain) In other words, either you build your own RL swc from the latest source and a SCM swc from my fork and the above trouble should be solved, or you'll need to wait a little until we've built the new beta and my pull request is accepted.

  2. 2 Posted by matej on 29 Apr, 2013 10:57 AM

    matej's Avatar

    Hey thanks!!

  3. Support Staff 3 Posted by creynders on 03 May, 2013 09:34 AM

    creynders's Avatar

    Closing this for now, if you have any further questions or comments, let us know!

  4. creynders closed this discussion on 03 May, 2013 09:34 AM.

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