benpickles/js-model — pull request #26 by olivernn (2012-09-21 09:29:41+00:00)
Title: Slice the events array before looping through it

This fixes a bug where event handlers that mutate the events array cause index out of bounds errors.