mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Converting PDFFindBar and PDFFindController to classes
This commit is contained in:
parent
2e98f9095e
commit
dbe22475e1
5 changed files with 442 additions and 440 deletions
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals CustomStyle, PDFFindController, scrollIntoView, PDFJS */
|
||||
/* globals PDFView, 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 = window.PDFFindController || null;
|
||||
this.findController = PDFView.findController || null;
|
||||
}
|
||||
|
||||
TextLayerBuilder.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue