diff --git a/lib/client/menu.js b/lib/client/menu.js index 3bef4920..66d7a7d1 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -133,10 +133,11 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO; } function beforeShow(callback, params) { - var notShow = DOM.getCurrentByPosition({ - x: params.x, - y: params.y - }); + var name = params.name, + notShow = DOM.getCurrentByPosition({ + x: params.x, + y: params.y + }); if (params.name === 'contextFile') { notShow = !notShow;