mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Removed a TODO and clarified with a better comment.
This commit is contained in:
parent
5314be8310
commit
63d9b0249a
1 changed files with 4 additions and 1 deletions
|
@ -1290,11 +1290,14 @@ class Scratch3Ev3Blocks {
|
|||
|
||||
/**
|
||||
* Call a callback for each motor indexed by the provided motor ID.
|
||||
*
|
||||
* Note: This way of looping through motors is currently unnecessary, but could be
|
||||
* useful if an 'all motors' option is added in the future (see WeDo2 extension).
|
||||
*
|
||||
* @param {MotorID} motorID - the ID specifier.
|
||||
* @param {Function} callback - the function to call with the numeric motor index for each motor.
|
||||
* @private
|
||||
*/
|
||||
// TODO: unnecessary, but could be useful if 'all motors' is added (see WeDo2 extension)
|
||||
_forEachMotor (motorID, callback) {
|
||||
let motors;
|
||||
switch (motorID) {
|
||||
|
|
Loading…
Reference in a new issue