mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update task.js
This commit is contained in:
parent
4382867eb8
commit
317d0d60b3
|
@ -16,11 +16,11 @@
|
|||
* // taskQueue.run();
|
||||
*/
|
||||
|
||||
var Task = function(f, params)
|
||||
var Task = function(f, params, when)
|
||||
this.f = f;
|
||||
this.params = params;
|
||||
this.nextTask = null;
|
||||
this.when = 0;
|
||||
this.when = (typeof(when) === "number" ? when : 0);
|
||||
this.setNextTask = function(task) {
|
||||
this.nextTask = task;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user