mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Stop wrapping function for no reason.
This commit is contained in:
parent
1910968b13
commit
026b9dc282
1 changed files with 1 additions and 3 deletions
|
@ -553,9 +553,7 @@ class Runtime extends EventEmitter {
|
|||
const menuId = this._makeExtensionMenuId(menuName, categoryInfo.id);
|
||||
let options = null;
|
||||
if (typeof menuItems === 'function') {
|
||||
options = function () {
|
||||
return menuItems();
|
||||
};
|
||||
options = menuItems;
|
||||
} else {
|
||||
options = menuItems.map(item => {
|
||||
switch (typeof item) {
|
||||
|
|
Loading…
Reference in a new issue