Update lib/client/keyBinding.js

This commit is contained in:
coderaiser 2012-08-14 17:55:52 +03:00
parent 0da891c0f7
commit d12e7a6cd1

View file

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