[Pkg-javascript-commits] [pdf.js] 82/161: refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:31 UTC 2014


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

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

commit 0fa44d7233bb4190099ac96e24efe21155014f93
Author: Thorben Bochenek <thorbenb at opera.com>
Date:   Wed Mar 12 09:51:40 2014 +0100

    refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
    
    Rename pdfModel to pdfDocument to let the name closer resemble what the
    variable actually holds
---
 src/core/worker.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/worker.js b/src/core/worker.js
index a092b78..69f284d 100644
--- a/src/core/worker.js
+++ b/src/core/worker.js
@@ -294,7 +294,8 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
 
     handler.on('GetPageIndex', function wphSetupGetPageIndex(data, deferred) {
       var ref = new Ref(data.ref.num, data.ref.gen);
-      pdfManager.pdfModel.catalog.getPageIndex(ref).then(function (pageIndex) {
+      var catalog = pdfManager.pdfDocument.catalog;
+      catalog.getPageIndex(ref).then(function (pageIndex) {
         deferred.resolve(pageIndex);
       }, deferred.reject);
     });

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