Clarify @TODO comment about extension status indicator

This commit is contained in:
Eric Rosenbaum 2017-11-20 13:42:35 -05:00
parent ba529ad50b
commit c3a72560f9

View file

@ -45,9 +45,7 @@ class Scratch3MusicBlocks {
/** /**
* Download and decode the full set of drum sounds, and store the audio buffers * Download and decode the full set of drum sounds, and store the audio buffers
* in the drum buffers array. * in the drum buffers array.
* @TODO: Also load the instrument sounds here (rename this fn), and use Promise.all * @TODO: Also load the instrument sounds here (rename this fn)
* to detect that all the assets have loaded in order to update the extension status
* indicator.
*/ */
_loadAllDrumSounds () { _loadAllDrumSounds () {
const loadingPromises = []; const loadingPromises = [];
@ -56,7 +54,7 @@ class Scratch3MusicBlocks {
loadingPromises.push(promise); loadingPromises.push(promise);
}); });
Promise.all(loadingPromises).then(() => { Promise.all(loadingPromises).then(() => {
// done! // @TODO: Update the extension status indicator.
}); });
} }