Merge pull request #15058 from Snuffleupagus/rm-baseviewerinit-event

[api-minor] Remove the "baseviewerinit" event since it's unused (PR 14324 follow-up)
This commit is contained in:
Tim van der Meij 2022-06-19 13:21:39 +02:00 committed by GitHub
commit f516bb2174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {