From bf5504545ac98e6df2626e1ef6e81c5a94db1a05 Mon Sep 17 00:00:00 2001 From: joe-allen-89 <85872286+joe-allen-89@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:16:05 +0000 Subject: [PATCH] Fix: Remove this.render on device change --- js/HotgridView.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/js/HotgridView.js b/js/HotgridView.js index e6b1ee9..ca00017 100644 --- a/js/HotgridView.js +++ b/js/HotgridView.js @@ -12,7 +12,6 @@ class HotgridView extends ComponentView { this.onItemClicked = this.onItemClicked.bind(this); this.setUpViewData(); - this.setUpEventListeners(); } setUpViewData() { @@ -20,10 +19,6 @@ class HotgridView extends ComponentView { this._isPopupOpen = false; } - setUpEventListeners() { - this.listenTo(Adapt, 'device:changed', this.resizeControl); - } - postRender() { this.$('.hotgrid__widget').imageready(this.setReadyStatus.bind(this)); @@ -32,10 +27,6 @@ class HotgridView extends ComponentView { } } - resizeControl() { - this.render(); - } - onItemClicked(e) { e.preventDefault();