JS client hubProxy.off( eventName) can't remove the event anymore after hubProxy.off( eventName, handler) called #1259

Open
Xiaohongt opened this Issue Jan 8, 2013 · 1 comment

2 participants

@Xiaohongt
SignalR member

e.g. for below sample ( it doesn't matter what hub), on client the handle on foo2 still is not removed:

myHub.on('foo2', handler);
myHub.on('foo2', handler);
myHub.on('foo2', handler);
myHub.off('foo2', handler);
myHub.off("foo2");   // the first time call here works 
myHub.on('foo2', handler);
myHub.on('foo2', handler);
myHub.on('foo2', handler);
myHub.off('foo2', handler);
myHub.off("foo2");   // not work anymore, if call it again again,still not wotk
@DamianEdwards
SignalR member

This needs to be simplified down to a smaller repro so we can investigate.

@NTaylorMullen NTaylorMullen added a commit that referenced this issue Feb 7, 2013
@NTaylorMullen NTaylorMullen Added a test to verify correctness of #1259. This test is being skipp…
…ed for now until the issue is fixed.
26266de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment