Liferay.Loader.define("portal-search-web$codemirror@5.62.0/addon/display/autorefresh",["module","exports","require","../../lib/codemirror"],(function(e,t,o){window,function(e){"use strict";function t(t,o){clearTimeout(o.timeout),e.off(window,"mouseup",o.hurry),e.off(window,"keyup",o.hurry)}e.defineOption("autoRefresh",!1,(function(o,r){o.state.autoRefresh&&(t(0,o.state.autoRefresh),o.state.autoRefresh=null),r&&0==o.display.wrapper.offsetHeight&&function(o,r){function i(){o.display.wrapper.offsetHeight?(t(0,r),o.display.lastWrapHeight!=o.display.wrapper.clientHeight&&o.refresh()):r.timeout=setTimeout(i,r.delay)}r.timeout=setTimeout(i,r.delay),r.hurry=function(){clearTimeout(r.timeout),r.timeout=setTimeout(i,50)},e.on(window,"mouseup",r.hurry),e.on(window,"keyup",r.hurry)}(o,o.state.autoRefresh={delay:r.delay||250})}))}("object"==typeof t&&"object"==typeof e?o("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=autorefresh.js.map