From 026b9dc2823f31df8c86642f04f5a68a37a99be5 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Fri, 2 Mar 2018 10:58:43 -0800 Subject: [PATCH] Stop wrapping function for no reason. --- src/engine/runtime.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 7e6298eea..5a4074591 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -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) {