diff --git a/lib/client/menu.js b/lib/client/menu.js index b7adb2c0..7650507d 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -181,8 +181,8 @@ var CloudCmd, Util, DOM, CloudFunc, $; function getConfig () { var lRet, lMenuItems = { - 'View' : show.bind(null, 'View'), - 'Edit' : show.bind(null, 'Edit'), + 'View' : Util.bind(show, 'View'), + 'Edit' : Util.bind(show, 'Edit'), 'Rename' : function() { setTimeout(DOM.renameCurrent, 100); }, @@ -234,12 +234,12 @@ var CloudCmd, Util, DOM, CloudFunc, $; return lRet; - function show(pName) { - var lEditor = CloudCmd[pName], - lResult = Util.exec(lEditor); + function show(name) { + var module = CloudCmd[name], + ret = Util.exec(module); - if (!lResult) - Util.exec(lEditor.show); + if (!ret) + Util.exec(module.show); } }