minor changes

This commit is contained in:
coderaiser 2012-10-02 11:25:30 -04:00
parent 4c181a026d
commit c565d23702

View file

@ -98,7 +98,7 @@ var CloudCommander, CloudFunc, CodeMirror;
/**
* function shows CodeMirror editor
*/
CodeMirrorEditor.show = (function(){
CodeMirrorEditor.show = function(){
/* if CodeMirrorEditor is not loaded - loading him */
if(!CodeMirrorLoaded)
return load();
@ -171,12 +171,12 @@ var CloudCommander, CloudFunc, CodeMirror;
Loading = false;
}
});
});
};
/**
* function hides CodeMirror editor
*/
CodeMirrorEditor.hide = (function() {
CodeMirrorEditor.hide = function() {
var lElem = CodeMirrorElement;
KeyBinding.set();
@ -184,12 +184,12 @@ var CloudCommander, CloudFunc, CodeMirror;
FM.removeChild(lElem);
Util.showPanel();
});
};
/**
* function bind keys
*/
cloudcmd.Editor.Keys = (function(pIsReadOnly){
cloudcmd.Editor.Keys = function(pIsReadOnly){
ReadOnly = pIsReadOnly;
var lThis = this.CodeMirror;
@ -238,7 +238,7 @@ var CloudCommander, CloudFunc, CodeMirror;
key_event();
};
}
});
};
cloudcmd.Editor.CodeMirror = CodeMirrorEditor;
})();