fix(edit) setModeForPath: setJsHint after mode was set

This commit is contained in:
coderaiser 2014-10-23 05:55:23 -04:00
parent cd06779bc9
commit 53da0d0b4c

View file

@ -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) {