tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/1911-unmapping-and-mapping-againRobotlegs: Discussion 2013-05-03T09:34:07Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/266104292013-04-29T08:33:52Z2013-04-29T08:33:52ZUnmapping and mapping again<div><p>Hello,</p>
<p>I have a situation where I have one signal mapped as singleton.
And in one command I inject that signal and dispatch from it.<br>
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.</p>
<p>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?</p></div>matejtag:robotlegs.tenderapp.com,2009-10-18:Comment/266104292013-04-29T10:20:53Z2013-04-29T10:20:53ZUnmapping and mapping again<div><p>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.</p>
<p>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 <a href=
"https://github.com/creynders/robotlegs-extensions-SignalCommandMap/tree/WIP">
my fork</a> 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.</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/266104292013-04-29T10:57:17Z2013-04-29T10:57:17ZUnmapping and mapping again<div><p>Hey thanks!!</p></div>matejtag:robotlegs.tenderapp.com,2009-10-18:Comment/266104292013-05-03T09:34:06Z2013-05-03T09:34:06ZUnmapping and mapping again<div><p>Closing this for now, if you have any further questions or
comments, let us know!</p></div>creynders