summaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-03 13:02:49 -0400
committerGitHub <noreply@github.com>2021-04-03 13:02:49 -0400
commita9fe2d03b22a0dd5760019f1325a7a86ebb07b85 (patch)
treeaa2fe04c741c82c0456f44a39139c52988b6c22d /ext/js/display
parent0d2d342cd373798e3daf42799a9f35d974db92f5 (diff)
Update dictionary settings structure (#1587)
* Update dictionary settings structure to use an array instead of an object * Update ensureDictionarySettings implementation * Remove some usage of ObjectPropertyAccessor
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/element-overflow-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/display/element-overflow-controller.js b/ext/js/display/element-overflow-controller.js
index ccea1417..abbf3332 100644
--- a/ext/js/display/element-overflow-controller.js
+++ b/ext/js/display/element-overflow-controller.js
@@ -29,7 +29,7 @@ class ElementOverflowController {
setOptions(options) {
this._dictionaries.clear();
- for (const [dictionary, {definitionsCollapsible}] of Object.entries(options.dictionaries)) {
+ for (const {name, definitionsCollapsible} of options.dictionaries) {
let collapsible = false;
let collapsed = false;
switch (definitionsCollapsible) {
@@ -42,7 +42,7 @@ class ElementOverflowController {
break;
}
if (!collapsible) { continue; }
- this._dictionaries.set(dictionary, {collapsed});
+ this._dictionaries.set(name, {collapsed});
}
}