Skip to content

Commit

Permalink
Merge pull request #21019 from code-dot-org/fix-playAudioOnFailure
Browse files Browse the repository at this point in the history
Bind obstacle failure timout handler
  • Loading branch information
Hamms committed Mar 5, 2018
2 parents 3c5c8fa + db13064 commit 979a805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/src/maze/mazeController.js
Expand Up @@ -303,7 +303,7 @@ module.exports = class MazeController {
// Play the sound
this.playAudio('obstacle');
this.animationsController.scheduleObstacleHit(targetX, targetY, deltaX, deltaY, frame);
timeoutList.setTimeout(function () {
timeoutList.setTimeout(() => {
this.playAudioOnFailure();
}, this.stepSpeed);
}
Expand Down

0 comments on commit 979a805

Please sign in to comment.