From e8af56ffc5e80a62782df94dac94b8c98f9a5572 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Wed, 6 Aug 2014 10:09:27 -0500 Subject: [PATCH] Fixes text-selection example --- web/page_view.js | 3 ++- web/text_layer_builder.js | 4 ++-- web/viewer.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/page_view.js b/web/page_view.js index 84e7dba1d..54903a5a9 100644 --- a/web/page_view.js +++ b/web/page_view.js @@ -561,7 +561,8 @@ var PageView = function pageView(container, id, scale, pageIndex: this.id - 1, lastScrollSource: PDFView, viewport: this.viewport, - isViewerInPresentationMode: PresentationMode.active + isViewerInPresentationMode: PresentationMode.active, + findController: PDFView.findController }) : null; // TODO(mack): use data attributes to store these ctx._scaleX = outputScale.sx; diff --git a/web/text_layer_builder.js b/web/text_layer_builder.js index f2fd180cf..19b54ccf6 100644 --- a/web/text_layer_builder.js +++ b/web/text_layer_builder.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* globals PDFView, CustomStyle, scrollIntoView, PDFJS */ +/* globals CustomStyle, scrollIntoView, PDFJS */ 'use strict'; @@ -39,7 +39,7 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() { this.viewport = options.viewport; this.isViewerInPresentationMode = options.isViewerInPresentationMode; this.textDivs = []; - this.findController = PDFView.findController || null; + this.findController = options.findController || null; } TextLayerBuilder.prototype = { diff --git a/web/viewer.js b/web/viewer.js index 8ca4a3a53..1bf69e0c4 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* globals PDFJS, PDFBug, FirefoxCom, Stats, Cache, CustomStyle, ProgressBar, +/* globals PDFJS, PDFBug, FirefoxCom, Stats, Cache, ProgressBar, DownloadManager, getFileName, scrollIntoView, getPDFFileNameFromURL, PDFHistory, Preferences, SidebarView, ViewHistory, PageView, ThumbnailView, URL, noContextMenuHandler, SecondaryToolbar,