[Pkg-javascript-commits] [pdf.js] 236/414: Add a `reset` method to `PDFFindbar`, and use it to clear parts of the find UI when the document is closed

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:26 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 c7a44391cfd47210a574291e7a316934e706f37a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Feb 26 18:22:08 2016 +0100

    Add a `reset` method to `PDFFindbar`, and use it to clear parts of the find UI when the document is closed
---
 web/pdf_find_bar.js | 4 ++++
 web/viewer.js       | 1 +
 2 files changed, 5 insertions(+)

diff --git a/web/pdf_find_bar.js b/web/pdf_find_bar.js
index 7fddd5d..ffcbef7 100644
--- a/web/pdf_find_bar.js
+++ b/web/pdf_find_bar.js
@@ -83,6 +83,10 @@ var PDFFindBar = (function PDFFindBarClosure() {
   }
 
   PDFFindBar.prototype = {
+    reset: function PDFFindBar_reset() {
+      this.updateUIState();
+    },
+
     dispatchEvent: function PDFFindBar_dispatchEvent(type, findPrev) {
       var event = document.createEvent('CustomEvent');
       event.initCustomEvent('find' + type, true, true, {
diff --git a/web/viewer.js b/web/viewer.js
index ee248cc..f2567fc 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -527,6 +527,7 @@ var PDFViewerApplication = {
     }
 
     this.findController.reset();
+    this.findBar.reset();
 
     if (typeof PDFBug !== 'undefined') {
       PDFBug.cleanup();

-- 
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