diff --git a/lib/client/editor.js b/lib/client/editor.js index ea93825c..ac04bdb2 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -8,18 +8,16 @@ CloudCommander.Editor.CodeMirror = { /* function shows editor */ var createEditorDiv = function() { - return function(){ - if (!document.getElementById('CloudEditor')) { - var lEditor=document.createElement('div'); - lEditor.id ='CloudEditor'; - var lFM = document.getElementById('fm'); - - if(lFM){ - lFM.appendChild(lEditor); - this.show(); - }else console.log('Error. Something went wrong FM not found'); - } - }; + if (!document.getElementById('CloudEditor')) { + var lEditor=document.createElement('div'); + lEditor.id ='CloudEditor'; + var lFM = document.getElementById('fm'); + + if(lFM){ + lFM.appendChild(lEditor); + this.show(); + }else console.log('Error. Something went wrong FM not found'); + } }; /* function loads css files * of CodeMirror