minor changes

This commit is contained in:
coderaiser 2012-07-22 14:45:08 -04:00
parent c7085650f3
commit d1dc5a8388

View file

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