From d63d82b0fd7f8bf48ce47bd36b7d1ba344a4a043 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 15:01:56 +0300 Subject: [PATCH] Update lib/client/menu.js --- lib/client/menu.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/client/menu.js b/lib/client/menu.js index caf35b4a..7652b392 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -30,14 +30,14 @@ CloudCommander.Menu.getConfig = (function(){ * @pParent - this * @pCallBack - executes, when everything loaded */ -CloudCommander.Menu.load = (function(pParent, pCallBack){ +CloudCommander.Menu.load = (function(pParent){ return function(){ var ljsLoad_f = function(){ var lUISrc = pParent.dir + 'jquery.ui.position.js'; var lMenuSrc = pParent.dir + 'jquery.contextMenu.js'; pParent.jsload(lUISrc, function(){ - pParent.jsload(lMenuSrc, pParent.show); + pParent.jsload(lMenuSrc, pParent.show(pParent)); }); }; @@ -61,8 +61,10 @@ CloudCommander.Menu.set = (function(){ CloudCommander.Menu.seted = false; CloudCommander.Menu.show = (function(pParent){ - pParent.set(); - $(CloudCommander.CURRENT_FILE).contextMenu(); + return function(){ + pParent.set(); + $(CloudCommander.CURRENT_FILE).contextMenu(); + } }); CloudCommander.Menu.Keys = (function(){