diff --git a/lib/client/editor.js b/lib/client/editor.js index 331cd157..798bd978 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -76,23 +76,20 @@ CloudCommander.Editor.CloudMirror = { lCloudEditor && (lCloudEditor.className = ''); - }), - - - - - hide :(function() { - CloudCommander.keyBinded = true; - - var lLeft = this.getById('left'); - var lCloudEditor = this.getById('CloudEditor'); - - lCloudEditor && - (lCloudEditor.className = 'hidden'); - - lLeft && - (lLeft.className = 'panel'); - }), + }), + hide :(function(pParent) { + return function(){ + CloudCommander.keyBinded = true; + + var lLeft = pParent.getById('left'); + var lCloudEditor = pParent.getById('CloudEditor'); + + lCloudEditor && + (lCloudEditor.className = 'hidden'); + + lLeft && + (lLeft.className = 'panel'); + }}), getById: function(pId){return document.getElementById(pId);} }; CloudCommander.Editor.Keys = (function(){