From d12e7a6cd1745f5677b5f4f6da219019fdc941b3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 17:55:52 +0300 Subject: [PATCH] Update lib/client/keyBinding.js --- lib/client/keyBinding.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index 56cf36b7..4d123ff1 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -23,16 +23,10 @@ CloudCommander.KEY = { F10 : 121 }; -CloudCommander.mouseBinding = (function(pElement){ - var isElement = pElement ? true : false; - if(isElement){ - pElement = document; - } - pElement.oncontextmenu = function(){ +CloudCommander.mouseBinding = (function(){ + document.oncontextmenu = function(){ if(typeof CloudCommander.Menu === 'function') CloudCommander.Menu(); - else if(isElement) - CloudCommander.Menu.show(); } })