diff --git a/client.js b/client.js index 4d31f77d..19516972 100644 --- a/client.js +++ b/client.js @@ -268,10 +268,12 @@ CloudClient.Util = (function(){ if(Util.isString(lParam) ) lParam = { src : lParam }; + if(lParam && !lParam.func){ lParam.func = function(){ Util.anyLoadOnload(pParams_a, pFunc); - }; + }; + this.anyload(lParam); }else if( this.isFunction(pFunc) ) diff --git a/lib/client/editor/_codemirror.js b/lib/client/editor/_codemirror.js index 7c50a898..23ecc1c0 100644 --- a/lib/client/editor/_codemirror.js +++ b/lib/client/editor/_codemirror.js @@ -74,7 +74,7 @@ var CloudCommander, CloudFunc, CodeMirror; //'height : ' + cloudcmd.HEIGHT + 'px' + '}' + '.CodeMirror-scroll{' + - 'height : ' + (cloudcmd.HEIGHT) + 'px' + + 'height : ' + (cloudcmd.HEIGHT) + 'px' + '}', //+ /* codemirror v3 */ //'#CodeMirrorEditor{' + @@ -82,9 +82,9 @@ var CloudCommander, CloudFunc, CodeMirror; // '}' parent: document.head }, - lDir + 'mode/javascript.js', lDir + 'codemirror.css', lDir + 'theme/night.css', + lDir + 'mode/javascript.js', lDir + 'codemirror.js'], function(){