From 6c468982edf2d308eed7437631bc394b9cdb4574 Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Wed, 23 Nov 2011 16:02:09 +0000 Subject: [PATCH] update documentation to better explain timer.addEvent() usage --- exec/load/event-timer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exec/load/event-timer.js b/exec/load/event-timer.js index b55a3c459e..9fd402b6f7 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: -- GitLab