Fix up comment.

This commit is contained in:
picklesrus 2018-03-02 11:07:22 -08:00
parent 026b9dc282
commit 16ecaab1be

View file

@ -264,8 +264,8 @@ class ExtensionManager {
// we can use it later when converting the menu for Scratch Blocks. // we can use it later when converting the menu for Scratch Blocks.
if (typeof menus[item] === 'string') { if (typeof menus[item] === 'string') {
const serviceObject = dispatch.services[serviceName]; const serviceObject = dispatch.services[serviceName];
const menuFunc = serviceObject[menus[item]].bind(serviceObject); // TODO: Fix this to use dispatch.call when extensions are running in workers.
menus[item] = menuFunc; menus[item] = serviceObject[menus[item]].bind(serviceObject);
} }
} }
return menus; return menus;