hay/stapes — pull request #30 by wellcaffeinated (2013-02-07 22:57:23+00:00)
Title: Fix for problem with unbinding events inside cb

When doing something like this:
.on('evt', function theCallback(data){
this.off('evt', theCallback);
});

stapes will throw an error because the event handler array
is being modified as it is looping though.

This edit copies the array locally to fix this.