From d60ce0f1231a674dd76d01e01fc15883a017598d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 16:36:38 +0300 Subject: [PATCH] Update lib/client/editor.js --- lib/client/editor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/client/editor.js b/lib/client/editor.js index af2c8f0c..4d11a433 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -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'))