CodeMirror lint addon init speedup

This commit is contained in:
tophf 2015-07-30 01:29:42 +03:00
parent 4d72102fd9
commit 41a3415c79

View File

@ -203,7 +203,7 @@
if (state.options.tooltips != false) if (state.options.tooltips != false)
CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver); CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
startLinting(cm); state.timeout = setTimeout(function(){startLinting(cm);}, state.options.delay || 500);
} }
}); });