mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-09 06:21:59 -05:00
Recompile
This commit is contained in:
parent
b46ee0113f
commit
b67558d777
2 changed files with 6 additions and 4 deletions
8
vm.js
8
vm.js
|
@ -1350,10 +1350,10 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a thread from the list of threads.
|
* Remove a thread from the list of threads.
|
||||||
* @param {!Thread} thread Thread object to remove from actives
|
* @param {?Thread} thread Thread object to remove from actives
|
||||||
*/
|
*/
|
||||||
Runtime.prototype._removeThread = function (id) {
|
Runtime.prototype._removeThread = function (thread) {
|
||||||
var i = this.threads.indexOf(id);
|
var i = this.threads.indexOf(thread);
|
||||||
if (i > -1) this.threads.splice(i, 1);
|
if (i > -1) this.threads.splice(i, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1366,8 +1366,10 @@
|
||||||
for (var i = 0; i < this.threads.length; i++) {
|
for (var i = 0; i < this.threads.length; i++) {
|
||||||
if (this.threads[i].topBlock == stackId) {
|
if (this.threads[i].topBlock == stackId) {
|
||||||
this._removeThread(this.threads[i]);
|
this._removeThread(this.threads[i]);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Otherwise add it
|
||||||
this._pushThread(stackId);
|
this._pushThread(stackId);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
vm.min.js
vendored
2
vm.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue