Skip to content

Commit

Permalink
Fix: Remove this.render on device change (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 authored Nov 21, 2023
1 parent 655e891 commit c9a6523
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions js/HotgridView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@ class HotgridView extends ComponentView {
this.onItemClicked = this.onItemClicked.bind(this);

this.setUpViewData();
this.setUpEventListeners();
}

setUpViewData() {
this.popupView = null;
this._isPopupOpen = false;
}

setUpEventListeners() {
this.listenTo(Adapt, 'device:changed', this.resizeControl);
}

postRender() {
this.$('.hotgrid__widget').imageready(this.setReadyStatus.bind(this));

Expand All @@ -32,10 +27,6 @@ class HotgridView extends ComponentView {
}
}

resizeControl() {
this.render();
}

onItemClicked(e) {
e.preventDefault();

Expand Down

0 comments on commit c9a6523

Please sign in to comment.