diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-07 13:58:19 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-10 20:09:33 -0400 |
commit | bc8793eb56b2ce985f2e5dc0a9fd270f98fbf17a (patch) | |
tree | b390bf63356b1584ea6d9bb5ff98450d96fb0e04 /ext/fg/js/float.js | |
parent | 99ca60d4c1456f243d8142b4502db441e33340a4 (diff) |
Add a context object for all calls to fetch options
Diffstat (limited to 'ext/fg/js/float.js')
-rw-r--r-- | ext/fg/js/float.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js index 3c521714..348c114e 100644 --- a/ext/fg/js/float.js +++ b/ext/fg/js/float.js @@ -23,6 +23,10 @@ class DisplayFloat extends Display { this.autoPlayAudioTimer = null; this.styleNode = null; + this.optionsContext = { + depth: 0 + }; + this.dependencies = Object.assign({}, this.dependencies, {docRangeFromPoint, docSentenceExtract}); $(window).on('message', utilAsync(this.onMessage.bind(this))); @@ -75,6 +79,7 @@ class DisplayFloat extends Display { }, popupNestedInitialize: ({id, depth, parentFrameId}) => { + this.optionsContext.depth = depth; popupNestedInitialize(id, depth, parentFrameId); } }; |