mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 16:01:07 -04:00
Fix _motorOnFor not setting _motorTimeout
This commit is contained in:
parent
b9af4f7894
commit
66e4a55b74
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ WeDo2Blocks.prototype._motorOnFor = function(direction, durationSeconds, util) {
|
|||
}
|
||||
|
||||
var instance = this;
|
||||
var myTimeout = setTimeout(function() {
|
||||
var myTimeout = this._motorTimeout = setTimeout(function() {
|
||||
if (instance._motorTimeout == myTimeout) {
|
||||
instance._motorTimeout = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue