jaysalvat/buzz — Issue #19: After unbinding from one event, further unbind's start to throw exceptions.
Author: karamanolev
Created: 2012-02-01 12:24:33+00:00
State: open

After you unbind from an event, *delete events[ i ];* is executed, but the entry from the array is not removed. This causes an exception to be thrown on further unbind() calls. I've fixed it by adding
**events.splice(i, 1);**
after the delete line.