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