addyosmani/aura — pull request #120 by bobholt (2012-09-18 13:53:29+00:00)
Title: fixes #119 - possible infinite loop in core.publish

Fixes the possible infinite loop discussed in #117. Changes:

* The iterator is moved back into the loop declaration.
* If the callback is null, the subscriber is removed and the iterator is decremented in order to hit the same index of the now-modified array.
* The try/catch is limited to the application of the callback as it was previously.