Update lib/client/editor.js

This commit is contained in:
coderaiser 2012-08-14 16:36:38 +03:00
parent ce834b8470
commit d60ce0f123

View file

@ -2,7 +2,11 @@ var CloudCommander, CloudFunc, CodeMirror;
/* object contains editors CodeMirror
* and later will be Ace
*/
CloudCommander.Editor = new CloudCommander.Util();
CloudCommander.Editor = {
get : (function(){
return this.Codemirror
})
};
CloudCommander.Editor.CodeMirror = new CloudCommander.Util();
/* indicator says CodeMirror still loads */
@ -61,7 +65,6 @@ CloudCommander.Editor.CodeMirror.load = (function(pParent){
});
/* function shows CodeMirror editor */
CloudCommander.Editor.show =
CloudCommander.Editor.CodeMirror.show = (function(){
/* if CloudEditor is not loaded - loading him */
if(!this.getById('CloudEditor'))