Update modelist.html

This commit is contained in:
Steven John Lange 2013-05-02 05:12:49 +03:00
commit ae3770b38e

View file

@ -36,7 +36,7 @@
// set the editor mode. Webmasters could use it in their scripts
// for site specific purposes as well.
var filePath = 'blahblah/weee/some.js';
var mode = modelist.getModeFromPath(filePath).mode;
var mode = modelist.getModeForPath(filePath).mode;
console.log(mode);
editor.session.setMode(mode);
}());