mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 23:10:56 -04:00
Fix lint errors.
This commit is contained in:
parent
57d3e564e2
commit
1910968b13
3 changed files with 12 additions and 12 deletions
src/engine
|
@ -551,11 +551,11 @@ class Runtime extends EventEmitter {
|
|||
*/
|
||||
_buildMenuForScratchBlocks (menuName, menuItems, categoryInfo) {
|
||||
const menuId = this._makeExtensionMenuId(menuName, categoryInfo.id);
|
||||
var options = null;
|
||||
let options = null;
|
||||
if (typeof menuItems === 'function') {
|
||||
options = function () {
|
||||
options = function () {
|
||||
return menuItems();
|
||||
}
|
||||
};
|
||||
} else {
|
||||
options = menuItems.map(item => {
|
||||
switch (typeof item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue