Skip to content

Commit

Permalink
Move call to save a render cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-steele committed Jun 10, 2024
1 parent 89d9d7e commit 033f5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/PageNavView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PageNavView extends ComponentView {
}

preRender() {
this.model.setupItemsModel();
this.listenTo(Adapt, 'remove', this.remove);
this.listenTo(Adapt.contentObjects, {
'change:_isComplete change:_isLocked': this.onContentObjectComplete
Expand All @@ -22,7 +23,6 @@ class PageNavView extends ComponentView {
this.setReadyStatus();
this.setupInviewCompletion();
this.setupTooltips();
this.model.setupItemsModel();
};

onContentObjectComplete() {
Expand Down

0 comments on commit 033f5bc

Please sign in to comment.