[Pkg-javascript-commits] [pdf.js] 131/246: Fixes text-selection example
David Prévot
taffit at moszumanska.debian.org
Sun Sep 7 15:36:33 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 e8af56ffc5e80a62782df94dac94b8c98f9a5572
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Wed Aug 6 10:09:27 2014 -0500
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 84e7dba..54903a5 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 f2fd180..19b54cc 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 8ca4a3a..1bf69e0 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,
--
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