Skip to content

Commit

Permalink
Merge pull request #14885 from Snuffleupagus/mozcentral-rm-unbindEvents
Browse files Browse the repository at this point in the history
Stop bundling `PDFViewerApplication.{unbindEvents, unbindWindowEvents}` in MOZCENTRAL builds
  • Loading branch information
timvandermeij authored May 8, 2022
2 parents 3d9b2c9 + ed8b172 commit 7111a17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,9 @@ const PDFViewerApplication = {
},

unbindEvents() {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
throw new Error("Not implemented: unbindEvents");
}
const { eventBus, _boundEvents } = this;

eventBus._off("resize", webViewerResize);
Expand Down Expand Up @@ -2008,6 +2011,9 @@ const PDFViewerApplication = {
},

unbindWindowEvents() {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
throw new Error("Not implemented: unbindWindowEvents");
}
const { _boundEvents } = this;

window.removeEventListener("visibilitychange", webViewerVisibilityChange);
Expand Down

0 comments on commit 7111a17

Please sign in to comment.