From 0fa44d7233bb4190099ac96e24efe21155014f93 Mon Sep 17 00:00:00 2001 From: Thorben Bochenek Date: Wed, 12 Mar 2014 09:51:40 +0100 Subject: [PATCH] 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 a092b783a..69f284dba 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); });