From fee81a642be54e456a1244fe0b1ae9ec6344eba3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Aug 2012 11:12:54 +0300 Subject: [PATCH] Update lib/client/keyBinding.js --- lib/client/keyBinding.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index 460dacbc..6f205cc8 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -25,13 +25,10 @@ CloudCommander.KEY = { CloudCommander.mouseBinding = (function(pEvent){ if(typeof CloudCommander.Menu === 'function'){ - var lPosition = {0,0} - if(pEvent && pEvent.x && pEvent.y){ - var lX = pEvent.x; - var lY = pEvent.y; - lPosition = {lX, lY} - } - CloudCommander.Menu(lPosition); + CloudCommander.Menu({ + x: pEvent.x, + y: pEvent.y + }); } })