Merge pull request #1408 from SourceR85/master

Fix errors in demo-files
This commit is contained in:
Harutyun Amirjanyan 2013-05-02 08:01:59 -07:00
commit 7a6fa8abb5
2 changed files with 2 additions and 1 deletions

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);
}());

View file

@ -24,6 +24,7 @@
<pre id="editor"></pre>
<script src="../build/src-noconflict/ace.js"></script>
<script src="../build/src-noconflict/ext-settings_menu.js"></script>
<script>
var editor = ace.edit("editor");
ace.require('ace/ext/settings_menu').init(editor);