Skip to content

Commit

Permalink
Add type information for two instance fields
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Sep 25, 2020
1 parent 67d0c46 commit 88b3b4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/annotator/delegator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ export default class Delegator {
this.element = element;

const el = /** @type {any} */ (element);

/** @type {EventEmitter} */
let eventBus = el._hypothesisEventBus;
if (!eventBus) {
eventBus = new EventEmitter();
el._hypothesisEventBus = eventBus;
}

this._eventBus = eventBus;

/** @type {[event: string, callback: Function][]} */
this._subscriptions = [];
}

Expand Down

0 comments on commit 88b3b4f

Please sign in to comment.