pdf.js/web
Jonas Jenwald c750514903 Simplify extractText in web/pdf_find_controller.js
Currently this method first uses a loop to build a temporary array to hold Promises, which are then resolved from a recursive helper function once the textContent is fetched for each page.

To me, this is unncessarily complicated, since we can do everything within one loop by simply chaining the asynchronous calls to retrieve the textContent. (Note that this guarantees that the textContent of the pages is still fetched sequentially.)
2017-05-10 14:09:15 +02:00
..
images optimize png images using zopflipng 2016-07-10 17:49:16 +08:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Annotations: implement support for line annotations 2017-04-12 23:05:25 +02:00
annotation_layer_builder.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
app.js Replace unnecessary var self = this statements with arrow functions in web/app.js 2017-05-09 13:46:54 +02:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
compatibility.js Move compatibility code to the shared/compatibility.js. 2017-02-23 19:18:44 -06:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
default_preferences.json Allow automatic print rotation via enablePrintAutoRotate 2017-02-08 12:39:24 +01:00
dom_events.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
download_manager.js Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up) 2017-04-17 13:34:30 +02:00
firefox_print_service.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
firefoxcom.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
genericcom.js Convert the Preferences to an ES6 class 2017-04-23 21:14:58 +02:00
grab_to_pan.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
hand_tool.js Convert the hand tool to ES6 syntax 2017-05-07 21:30:07 +02:00
interfaces.js Convert the interfaces to ES6 syntax 2017-05-07 22:01:49 +02:00
overlay_manager.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
password_prompt.js Remove the password prompt input type hack 2017-04-16 15:17:23 +02:00
pdf_attachment_viewer.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
pdf_document_properties.js Re-factor PDFDocumentProperties such that it's properly reset when a new PDF file is opened (issue 8371) 2017-05-07 10:16:03 +02:00
pdf_find_bar.js Convert the find bar to ES6 syntax 2017-04-16 23:12:11 +02:00
pdf_find_controller.js Simplify extractText in web/pdf_find_controller.js 2017-05-10 14:09:15 +02:00
pdf_history.js Import getGlobalEventBus correctly from web/dom_events.js in various /web files, to un-break e.g. the viewer components (PR 8203 follow-up) 2017-04-17 00:54:29 +02:00
pdf_link_service.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
pdf_outline_viewer.js Convert the attachments/outline view to ES6 syntax 2017-04-23 16:06:15 +02:00
pdf_page_view.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
pdf_presentation_mode.js Convert presentation mode to ES6 syntax 2017-04-27 16:23:29 +02:00
pdf_print_service.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
pdf_rendering_queue.js Convert the rendering queue to ES6 syntax 2017-04-27 16:23:30 +02:00
pdf_sidebar.js Convert the sidebar to ES6 syntax 2017-04-23 17:13:51 +02:00
pdf_thumbnail_view.js Use createPromiseCapability in /web files 2017-04-16 12:45:24 +02:00
pdf_thumbnail_viewer.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
pdf_viewer.component.js ES6 modules: remove UMD header validation 2017-03-04 21:43:25 +01:00
pdf_viewer.css Better components examples. 2016-04-28 13:30:03 -05:00
pdf_viewer.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
pdfjs.js Enable running the ui_utils unit-tests on Travis 2017-04-25 13:37:56 +02:00
preferences.js Re-factor PDFDocumentProperties such that it's properly reset when a new PDF file is opened (issue 8371) 2017-05-07 10:16:03 +02:00
secondary_toolbar.js Convert the secondary toolbar to ES6 syntax 2017-05-07 21:43:50 +02:00
text_layer_builder.css Use default line height for the text layer 2015-12-02 23:00:12 +01:00
text_layer_builder.js Replace unnecessary bind(this) statements with arrow functions in web/ files 2017-05-04 17:13:09 +02:00
toolbar.js Enable the object-shorthand ESLint rule in web 2017-04-29 20:29:04 +02:00
ui_utils.js Re-factor PDFDocumentProperties such that it's properly reset when a new PDF file is opened (issue 8371) 2017-05-07 10:16:03 +02:00
view_history.js Re-factor ViewHistory to make it properly asynchronous 2017-04-27 11:49:35 +02:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-chrome-overlays.html Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
viewer-snippet-firefox-extension.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer.css Remove unnecessary .toolbarButton.group CSS class 2017-03-10 13:49:24 +01:00
viewer.html Remove the password prompt input type hack 2017-04-16 15:17:23 +02:00
viewer.js [Firefox addon] Remove the window.FirefoxCom hack from web/viewer.js, since it was made redundant by the setExternalLocalizerServices re-factoring (PR 7202 follow-up) 2017-04-20 17:23:30 +02:00