Remove Display.dependencies

This commit is contained in:
toasted-nutbread 2019-10-12 15:00:39 -04:00
parent 6da7683552
commit 537d2ef532
3 changed files with 0 additions and 8 deletions

View File

@ -31,8 +31,6 @@ class DisplaySearch extends Display {
this.intro = document.querySelector('#intro');
this.introVisible = true;
this.introAnimationTimer = null;
this.dependencies = Object.assign({}, this.dependencies, {docRangeFromPoint, docSentenceExtract});
}
static create() {

View File

@ -28,8 +28,6 @@ class DisplayFloat extends Display {
url: window.location.href
};
this.dependencies = Object.assign({}, this.dependencies, {docRangeFromPoint, docSentenceExtract});
window.addEventListener('message', (e) => this.onMessage(e), false);
}

View File

@ -35,8 +35,6 @@ class Display {
this.interactive = false;
this.eventListenersActive = false;
this.dependencies = {};
this.windowScroll = new WindowScroll();
this.setInteractive(true);
@ -86,8 +84,6 @@ class Display {
try {
e.preventDefault();
const {docRangeFromPoint, docSentenceExtract} = this.dependencies;
const clickedElement = e.target;
const textSource = docRangeFromPoint(e.clientX, e.clientY, this.options);
if (textSource === null) {