Merge pull request #5142 from yurydelendik/fix-ts-example

Fixes text-selection example
This commit is contained in:
Jonas Jenwald 2014-08-06 17:25:38 +02:00
commit c3fb7ee79a
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -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 = {

View File

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