summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-12 15:00:39 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-12 15:31:29 -0400
commit537d2ef532aa7b7498de13ab039bd23f28d32714 (patch)
tree6cf3db9c0e2b58809d4c77a923af9841d26d68ff
parent6da76835524fbf6b95902f06822d77c54ccf735b (diff)
Remove Display.dependencies
-rw-r--r--ext/bg/js/search.js2
-rw-r--r--ext/fg/js/float.js2
-rw-r--r--ext/mixed/js/display.js4
3 files changed, 0 insertions, 8 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 80519f4a..1d780d70 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -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() {
diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js
index 4a571466..5164cd8f 100644
--- a/ext/fg/js/float.js
+++ b/ext/fg/js/float.js
@@ -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);
}
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index b3ddae72..cd9f41bd 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -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) {