From f45f9a83ee4c4142e40c8f4b98fa370255772cf0 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 31 Aug 2018 21:48:04 +0300 Subject: [PATCH] Remove unnecessary resize handler --- client/js/renderPreview.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/js/renderPreview.js b/client/js/renderPreview.js index 85b42515..c8b64583 100644 --- a/client/js/renderPreview.js +++ b/client/js/renderPreview.js @@ -5,12 +5,6 @@ const debounce = require("lodash/debounce"); const Mousetrap = require("mousetrap"); const templates = require("../views"); -const {togglePreviewMoreButtonsIfNeeded} = require("./utils"); - -// On resize, previews in the current channel that are expanded need to compute -// their "More" button. Debounced handler to avoid performance cost. -$(window).on("resize", debounce(togglePreviewMoreButtonsIfNeeded, 150)); - /* Image viewer */ const imageViewer = $("#image-viewer");