From a52c6ed9d74963ed595419efa1b77e7e7dbeeebb Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 27 Aug 2017 18:03:59 +0300 Subject: [PATCH] avoid creating conflicts with stylelint PR --- edit/edit.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/edit/edit.js b/edit/edit.js index 1b745ace..73e4667a 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1370,10 +1370,6 @@ function initHooks() { document.getElementById('lint-help').addEventListener('click', showLintHelp); document.getElementById('lint').addEventListener('click', gotoLintIssue); window.addEventListener('resize', resizeLintReport); - window.addEventListener('load', function _() { - window.removeEventListener('load', _); - window.addEventListener('resize', () => debounce(rememberWindowSize, 100)); - }); // touch devices don't have onHover events so the element we'll be toggled via clicking (touching) if ('ontouchstart' in document.body) { @@ -1390,6 +1386,11 @@ function initHooks() { ).forEach(e => e.addEventListener('mousedown', toggleContextMenuDelete)); } + window.addEventListener('load', function _() { + window.removeEventListener('load', _); + window.addEventListener('resize', () => debounce(rememberWindowSize, 100)); + }); + setupGlobalSearch(); setCleanGlobal(); updateTitle();