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:
Jonas Jenwald 2017-04-17 00:48:45 +02:00
parent 009d91d735
commit 79e0745a12
5 changed files with 10 additions and 10 deletions

View file

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