diff --git a/exec/load/event-timer.js b/exec/load/event-timer.js index b55a3c459e5e432cb0ab9170efc2f9277ca98728..9fd402b6f71e162ed2b3e92d2f9ab6ca8652c7f8 100644 --- a/exec/load/event-timer.js +++ b/exec/load/event-timer.js @@ -6,7 +6,13 @@ methods: - Timer.cycle() - - Timer.addEvent() + - Timer.addEvent(interval,repeat,action,arguments,context) + + - interval = time to wait before running event (in milliseconds) + - repeat = how many times to run the event (TRUE = run infinitely, FALSE = run once) + - action = the function to call when running the event + - arguments = the arguments to pass to the action + - context = the context (scope) in which to run the event sample usage: