mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 17:11:21 -04:00
Merge branch 'develop' into feature/eslint-jsdoc
# Conflicts: # .eslintrc # src/index.js
This commit is contained in:
commit
42d03db28b
11 changed files with 178 additions and 95 deletions
src/engine
|
@ -199,7 +199,13 @@ Runtime.prototype.startDistanceSensors = function () {
|
|||
Runtime.prototype.stopAll = function () {
|
||||
var threadsCopy = this.threads.slice();
|
||||
while (threadsCopy.length > 0) {
|
||||
this._removeThread(threadsCopy.pop());
|
||||
var poppedThread = threadsCopy.pop();
|
||||
// Unglow any blocks on this thread's stack.
|
||||
for (var i = 0; i < poppedThread.stack.length; i++) {
|
||||
this.glowBlock(poppedThread.stack[i], false);
|
||||
}
|
||||
// Actually remove the thread.
|
||||
this._removeThread(poppedThread);
|
||||
}
|
||||
// @todo call stop function in all extensions/packages/WeDo stub
|
||||
if (window.native) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue