[api-minor] Remove the "baseviewerinit" event since it's unused (PR 14324 follow-up)

Given that neither the viewer or the examples listen for this event, it seems unnecessary to keep dispatching it.
This commit is contained in:
Jonas Jenwald 2022-06-19 09:57:05 +02:00
parent 6dc8d1f532
commit caaa78f7da

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