summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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) {