From d1dc5a8388008dcd2cb3f66ed6ce61abb8a02caf Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 22 Jul 2012 14:45:08 -0400 Subject: [PATCH] minor changes --- lib/client/editor.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/client/editor.js b/lib/client/editor.js index e601bb35..1ad28b08 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -1,11 +1,18 @@ var CloudCommander, CodeMirror; +/* object contains editors CodeMirror + * and later will be Ace + */ CloudCommander.Editor = {}; -CloudCommander.Editor.CodeMirror = { - load: (function(){ +CloudCommander.Editor.CodeMirror = { + load: (function(){ /* function loads CodeMirror js and css files */ + /* load CodeMirror main module */ CloudCommander.jsload('http://codemirror.net/lib/codemirror.js', load_all(this)); - function load_all(pParent) { + /* function loads css files + * of CodeMirror + */ + var load_all = function(pParent) { return function(){ CloudCommander.cssLoad({ src : 'http://codemirror.net/lib/codemirror.css', @@ -61,7 +68,7 @@ CloudCommander.Editor.CodeMirror = { }; } }), - show : (function(){ + show : (function(){ /* function shows CodeMirror editor */ /* if CloudEditor is not loaded - loading him */ document.getElementById('CloudEditor') || this.load();