mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(edit) setModeForPath: setJsHint after mode was set
This commit is contained in:
parent
cd06779bc9
commit
53da0d0b4c
1 changed files with 8 additions and 7 deletions
|
|
@ -134,14 +134,15 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
isHTML = mode === htmlMode,
|
||||
isJS = mode === jsMode;
|
||||
|
||||
Session.setMode(mode);
|
||||
setUseOfWorker(mode);
|
||||
Session.setMode(mode, function() {
|
||||
setUseOfWorker(mode);
|
||||
|
||||
if (isHTML)
|
||||
setEmmet();
|
||||
|
||||
if (isJS && Session.getUseWorker())
|
||||
setJsHintConfig();
|
||||
if (isHTML)
|
||||
setEmmet();
|
||||
|
||||
if (isJS && Session.getUseWorker())
|
||||
setJsHintConfig();
|
||||
});
|
||||
};
|
||||
|
||||
this.setMode = function(mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue