From 86b2bfdcb3e7f80e21f2b545f0473977e7027529 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 15 May 2014 09:50:06 -0400 Subject: [PATCH] fix(menu) beforeShow: name -> params.name --- lib/client/menu.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;