From f16aa33dbe8c47b0c38f40582256304e296e4565 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jul 2012 05:48:17 -0400 Subject: [PATCH] minor changes --- lib/client/editor.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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