mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 15:02:06 -05:00
Return if a thread is toggled off
This commit is contained in:
parent
7d9f75b14d
commit
b46ee0113f
1 changed files with 2 additions and 0 deletions
|
@ -188,8 +188,10 @@ Runtime.prototype.toggleStack = function (stackId) {
|
||||||
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue