[Pkg-javascript-commits] [pdf.js] 370/414: Removes PDFView global and pagerender event support.

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 50fe8e7c7548f20553751a682d46041186f2154d
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Fri Apr 8 16:33:00 2016 -0500

    Removes PDFView global and pagerender event support.
---
 web/app.js           | 3 ---
 web/pdf_page_view.js | 9 ---------
 2 files changed, 12 deletions(-)

diff --git a/web/app.js b/web/app.js
index 307e47d..9d03cc2 100644
--- a/web/app.js
+++ b/web/app.js
@@ -1285,9 +1285,6 @@ var PDFViewerApplication = {
     this.pdfPresentationMode.mouseScroll(delta);
   }
 };
-//#if GENERIC
-window.PDFView = PDFViewerApplication; // obsolete name, using it as an alias
-//#endif
 
 //#if GENERIC
 var HOSTED_VIEWER_ORIGINS = ['null',
diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js
index 9484ff7..a563b50 100644
--- a/web/pdf_page_view.js
+++ b/web/pdf_page_view.js
@@ -456,15 +456,6 @@ var PDFPageView = (function PDFPageViewClosure() {
           cssTransform: false,
         });
         div.dispatchEvent(event);
-//#if GENERIC
-        // This custom event is deprecated, and will be removed in the future,
-        // please use the |pagerendered| event instead.
-        var deprecatedEvent = document.createEvent('CustomEvent');
-        deprecatedEvent.initCustomEvent('pagerender', true, true, {
-          pageNumber: pdfPage.pageNumber
-        });
-        div.dispatchEvent(deprecatedEvent);
-//#endif
 
         if (!error) {
           resolveRenderPromise(undefined);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list