From 8da82cfe0106907854982d1324a645744dfe4688 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Mon, 4 Feb 2019 21:45:23 -0500 Subject: [PATCH] Adding JSDoc and removing extension manager gdx uncommenting. --- src/extension-support/extension-manager.js | 6 +++--- src/extensions/scratch3_gdx_for/index.js | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/extension-support/extension-manager.js b/src/extension-support/extension-manager.js index 7a905af02..bdebb2ace 100644 --- a/src/extension-support/extension-manager.js +++ b/src/extension-support/extension-manager.js @@ -19,7 +19,7 @@ const Scratch3Ev3Blocks = require('../extensions/scratch3_ev3'); const Scratch3MakeyMakeyBlocks = require('../extensions/scratch3_makeymakey'); // todo: only load this extension once we have a compatible way to load its // Vernier module dependency. -const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for'); +// const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for'); const builtinExtensions = { pen: Scratch3PenBlocks, @@ -31,8 +31,8 @@ const builtinExtensions = { videoSensing: Scratch3VideoSensingBlocks, speech2text: Scratch3Speech2TextBlocks, ev3: Scratch3Ev3Blocks, - makeymakey: Scratch3MakeyMakeyBlocks, - gdxfor: Scratch3GdxForBlocks + makeymakey: Scratch3MakeyMakeyBlocks + // gdxfor: Scratch3GdxForBlocks }; /** diff --git a/src/extensions/scratch3_gdx_for/index.js b/src/extensions/scratch3_gdx_for/index.js index 22ede13e4..752767716 100644 --- a/src/extensions/scratch3_gdx_for/index.js +++ b/src/extensions/scratch3_gdx_for/index.js @@ -224,7 +224,11 @@ class GdxFor { }); } - // TODO: JSDoc + /** + * Handler for sensor value changes from the goforce device. + * @param {object} sensor - goforce device sensor whose value has changed + * @private + */ _onSensorValueChanged (sensor) { let val = sensor.value; const framesPerSec = 1000 / this._runtime.currentStepTime;