X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/util/core/TaskMgr.js..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/src/ext-core/src/util/TaskMgr.js diff --git a/src/util/core/TaskMgr.js b/src/ext-core/src/util/TaskMgr.js similarity index 79% rename from src/util/core/TaskMgr.js rename to src/ext-core/src/util/TaskMgr.js index 7fc64769..b7a2d0d5 100644 --- a/src/util/core/TaskMgr.js +++ b/src/ext-core/src/util/TaskMgr.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.1 - * Copyright(c) 2006-2010 Ext JS, LLC + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ @@ -30,6 +30,7 @@ Ext.TaskMgr.start({ }); * + *
See the {@link #start} method for details about how to configure a task object.
* Also see {@link Ext.util.DelayedTask}. * * @constructor @@ -101,21 +102,25 @@ Ext.util.TaskRunner = function(interval){ /** * Starts a new task. * @method start - * @param {Object} task A config object that supports the following properties:run
: Functionargs
argument if specified. If a
- * particular scope is required, be sure to specify it using the scope
argument.A config object that supports the following properties:
run
: FunctionThe function to execute each time the task is invoked. The
+ * function will be called at each interval and passed the args
argument if specified, and the
+ * current invocation count if not.
If a particular scope (this
reference) is required, be sure to specify it using the scope
argument.
Return false
from this function to terminate the task.
interval
: Numberargs
: Arrayrun
.run
. If not specified, the current invocation count is passed.
* scope
: Objectrun
function. Defaults to the task config object.duration
: Numberduration
: Numberrepeat
: Numberrepeat
: NumberBefore each invocation, Ext injects the property taskRunCount
into the task object so
+ * that calculations based on the repeat count can be performed.
See the {@link #start} method for details about how to configure a task object.
* @singleton */ Ext.TaskMgr = new Ext.util.TaskRunner(); \ No newline at end of file