mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Import getGlobalEventBus
correctly from web/dom_events.js
in various /web
files, to un-break e.g. the viewer components (PR 8203 follow-up)
In PR 8203, I somehow managed to mess up the import of `getGlobalEventBus` in *all* files where it's present; my sincere apologies for this!
This commit is contained in:
parent
009d91d735
commit
79e0745a12
5 changed files with 10 additions and 10 deletions
|
@ -13,7 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { domEvents } from './dom_events';
|
||||
import { getGlobalEventBus } from './dom_events';
|
||||
import { renderTextLayer } from './pdfjs';
|
||||
|
||||
var EXPAND_DIVS_TIMEOUT = 300; // ms
|
||||
|
@ -39,7 +39,7 @@ var EXPAND_DIVS_TIMEOUT = 300; // ms
|
|||
var TextLayerBuilder = (function TextLayerBuilderClosure() {
|
||||
function TextLayerBuilder(options) {
|
||||
this.textLayerDiv = options.textLayerDiv;
|
||||
this.eventBus = options.eventBus || domEvents.getGlobalEventBus();
|
||||
this.eventBus = options.eventBus || getGlobalEventBus();
|
||||
this.textContent = null;
|
||||
this.renderingDone = false;
|
||||
this.pageIdx = options.pageIndex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue