'Undocumented feature' in Rob Penner's AS3 Signals
Last week, I started replacing events in DestroyFramework with Rob Penner’s AS3 Signals. They’re faster, shorter, and include a few methods that developers have been dying for. Unfortunately, the first implementation, into my new Group class, didn’t work. I was puzzled to say the least. After literally hours of testing and debugging, I discovered the culprit.
It turns out, the remove(listener) method lacks a check for listener existence in the listeners array. When the method is called, if the index of the listener returns -1, the array splices the first listener. I forked the Git repository and implemented the fix on the Signal, NativeSignal, and DeluxeSignal classes. And because a fix isn’t a fix without proper unit testing (says Joel Hooks), I added the unit tests as well.

Nice catch. Joel is right! Regards, Alec.
Sorry this bug took up your time. This is an excellent catch and your unit tests were extremely helpful. I made further fixes and committed them here:
http://bit.ly/8qd9yW
@Robert — No problem at all. I think all developers have a strong determination to fix things. I probably wouldn’t have been able to sleep if I didn’t get to the bottom of it
I’m sure you can relate.