Skip to content

Commit

Permalink
Merge pull request #15058 from Snuffleupagus/rm-baseviewerinit-event
Browse files Browse the repository at this point in the history
[api-minor] Remove the "baseviewerinit" event since it's unused (PR 14324 follow-up)
  • Loading branch information
timvandermeij authored Jun 19, 2022
2 parents 54777b4 + caaa78f commit f516bb2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions web/base_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,6 @@ class BaseViewer {
this.viewer.classList.add("removePageBorders");
}
this.updateContainerHeightCss();
// Defer the dispatching of this event, to give other viewer components
// time to initialize *and* register 'baseviewerinit' event listeners.
Promise.resolve().then(() => {
this.eventBus.dispatch("baseviewerinit", { source: this });
});
}

get pagesCount() {
Expand Down

0 comments on commit f516bb2

Please sign in to comment.