From 41873bf7bfa9e2125eb2f09e90188129ce938f6d Mon Sep 17 00:00:00 2001 From: Kevin Andersen Date: Tue, 9 Apr 2019 14:52:41 -0400 Subject: [PATCH] Use the power-getter rather than accessing the property directly --- src/extensions/scratch3_boost/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index acaedd56d..6d4b4080f 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -471,7 +471,7 @@ class BoostMotor { * @param {number} direction - rotate in this direction */ turnOnForDegrees (degrees, direction) { - if (this._power === 0) { + if (this.power === 0) { this.pendingPromiseFunction(); return; }