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

[lint addon] Don't break for people who are putting linter options in separate property

parent 2462b898
No related branches found
No related tags found
Loading
......@@ -118,10 +118,11 @@
function startLinting(cm) {
var state = cm.state.lint, options = state.options;
var passOptions = options.options || options; // Support deprecated passing of `options` property in options
if (options.async)
options.getAnnotations(cm.getValue(), updateLinting, options, cm);
options.getAnnotations(cm.getValue(), updateLinting, passOptions, cm);
else
updateLinting(cm, options.getAnnotations(cm.getValue(), options, cm));
updateLinting(cm, options.getAnnotations(cm.getValue(), passOptions, cm));
}
function updateLinting(cm, annotationsNotSorted) {
......
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