fixup 1ad9200: don't overwrite the initial lint delay

This commit is contained in:
tophf 2015-08-03 18:54:03 +03:00
parent b4eaac4ef9
commit cb366cf9d7

View File

@ -778,7 +778,7 @@ function updateLintReport(cm, delay) {
// by settings its internal delay to 1ms and restoring it back later
var lintOpt = editors[0].state.lint.options;
setTimeout((function(opt, delay) {
opt.delay = delay;
opt.delay = delay == 1 ? opt.delay : delay; // options object is shared between editors
update(this);
}).bind(cm, lintOpt, lintOpt.delay), delay);
lintOpt.delay = 1;