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