PrimaryFeather/Starling-Framework — pull request #109 by balthazar (2012-05-08 23:18:50+00:00)
Title: Allow DelayedCall to trigger an indefinite amount of calls

Hello!

I recently felt the need to use delayed calls that trigger an indefinite amount of time instead of a fixed amount.

To activate the indefinite behavior, all that's needed is to set the repeatCount property to 0. This mimics how Adobe's Timer class works.

I admit it's not a ground-breaking modification, but it helps keep code lean and it's a very useful behavior.

I've also included a stop() method to manually fire the REMOVE_FROM_JUGGLER event and a totalCalls property to keep track of how many times the DelayedCall has fired.

Hope you find it useful enough to include it!