Skip to content
Snippets Groups Projects
Commit e3d64baf authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[runmode addon] Fix broken node.js version

Issue #2054
parent d13582f3
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ exports.getMode = function(options, spec) {
if (!mfactory) throw new Error("Unknown mode: " + spec);
return mfactory(options, spec);
};
CodeMirror.registerHelper = CodeMirror.registerGlobalHelper = Math.min;
exports.registerHelper = exports.registerGlobalHelper = Math.min;
exports.runMode = function(string, modespec, callback) {
var mode = exports.getMode({indentUnit: 2}, modespec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment