mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Clarify @TODO comment about extension status indicator
This commit is contained in:
parent
ba529ad50b
commit
c3a72560f9
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue