lib/gitdocs/public/js/edit.js in gitdocs-0.5.0.pre6 vs lib/gitdocs/public/js/edit.js in gitdocs-0.5.0.pre7

- old
+ new

@@ -19,12 +19,12 @@ langMode[lang] = require("ace/mode/" + lang).Mode; }); // Apply code highlighting mode based on map $.each(langMap, function(ext, name) { - if (filename.match(ext)) { editor.getSession().setMode(new langMode[name]); } + if (filename.match(ext)) { editor.getSession().setMode(new langMode[name]()); } }); // Display ace editor $('form.edit').show().find('#editor').show(); - editor.focus() -}); \ No newline at end of file + editor.focus(); +});