mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Removing task queue constructor hacks.
This commit is contained in:
parent
6688106852
commit
dbb884ddef
1 changed files with 0 additions and 7 deletions
|
@ -21,15 +21,8 @@ class TaskQueue {
|
|||
this._maxTokens = maxTokens;
|
||||
this._refillRate = refillRate;
|
||||
this._pendingTaskRecords = [];
|
||||
<<<<<<< HEAD
|
||||
this._tokenCount = options.hasOwnProperty('startingTokens') ? options.startingTokens : maxTokens;
|
||||
this._maxTotalCost = options.hasOwnProperty('maxTotalCost') ? options.maxTotalCost : Infinity;
|
||||
=======
|
||||
// this._tokenCount = options.hasOwnProperty('startingTokens') ? options.startingTokens : maxTokens;
|
||||
this._tokenCount = options ? maxTokens : maxTokens;
|
||||
// this._maxTotalCost = options.hasOwnProperty('maxTotalCost') ? options.maxTotalCost : Infinity;
|
||||
this._maxTotalCost = options ? options.maxTotalCost : Infinity;
|
||||
>>>>>>> Continuing to test the newest TaskQueue with microbit.
|
||||
this._timer = new Timer();
|
||||
this._timer.start();
|
||||
this._timeout = null;
|
||||
|
|
Loading…
Reference in a new issue