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(); } })