mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 14:02:37 -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++) {
|
||||
if (this.threads[i].topBlock == stackId) {
|
||||
this._removeThread(this.threads[i]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Otherwise add it
|
||||
this._pushThread(stackId);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue