Skip to content

Commit

Permalink
Use CodeMirror.defaults as options stub in runMode
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Feb 20, 2012
1 parent 1533e34 commit cd16ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/runmode.js
@@ -1,5 +1,5 @@
CodeMirror.runMode = function(string, modespec, callback) {
var mode = CodeMirror.getMode({indentUnit: 2}, modespec);
var mode = CodeMirror.getMode(CodeMirror.defaults, modespec);
var isNode = callback.nodeType == 1;
if (isNode) {
var node = callback, accum = [];
Expand Down

0 comments on commit cd16ca5

Please sign in to comment.