From fd4b88b99bb4d569c3d6012464e96c8d510064ca Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 14 Apr 2014 10:27:53 -0400 Subject: [PATCH] fix(menu) MenuProto: add start position --- lib/client/menu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/menu.js b/lib/client/menu.js index b2b58963..c132c629 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -8,7 +8,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; CloudCmd.Menu = MenuProto; - function MenuProto() { + function MenuProto(position) { var Name = 'Menu', Info = DOM.CurrentInfo, Loading = false, @@ -46,7 +46,8 @@ var CloudCmd, Util, DOM, CloudFunc, $; Images.hideLoad(); - $('li').contextMenu(Position); + $('li').contextMenu(position || Position); + position = null; } };