|
From: <acl...@us...> - 2006-10-14 21:02:38
|
Revision: 602
http://svn.sourceforge.net/asapframework/?rev=602&view=rev
Author: aclemens
Date: 2006-10-14 14:02:33 -0700 (Sat, 14 Oct 2006)
Log Message:
-----------
setCallback should accept a function reference as well
Modified Paths:
--------------
trunk/asapframework/org/asapframework/util/watch/Watcher.as
Modified: trunk/asapframework/org/asapframework/util/watch/Watcher.as
===================================================================
--- trunk/asapframework/org/asapframework/util/watch/Watcher.as 2006-10-14 12:28:50 UTC (rev 601)
+++ trunk/asapframework/org/asapframework/util/watch/Watcher.as 2006-10-14 21:02:33 UTC (rev 602)
@@ -140,6 +140,11 @@
/**
Sets the Watcher timer frequency interval.
@param inIntervalDuration : time duration between each check; duration in seconds
+ @example
+ <code>
+ var watcher:Watcher = new Watcher();
+ watcher.setIntervalDuration(1/12);
+ </code>
*/
public function setIntervalDuration (inIntervalDuration:Number) : Void {
mIntervalDuration = inIntervalDuration * 1000; // translate to milliseconds;
@@ -151,7 +156,7 @@
@param inCallbackMethod : Method (name or function reference) to be called during watching. Parameters that should be passed to the callback method can be appended as a comma separated list.
*/
public function setCallback (inCallbackObject:Object,
- inCallbackMethod:String) : Void {
+ inCallbackMethod:Object) : Void {
mCallbackObject = inCallbackObject;
mCallbackMethod = inCallbackMethod;
mCallbackParams = arguments.splice(2, arguments.length - 2);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|