aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display-generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display-generator.js')
-rw-r--r--ext/js/display/display-generator.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index 1f485a4f..3fabdbb0 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -28,7 +28,7 @@ class DisplayGenerator {
this._contentManager = contentManager;
this._hotkeyHelpController = hotkeyHelpController;
this._templates = null;
- this._structuredContentGenerator = new StructuredContentGenerator(this._contentManager, document);
+ this._structuredContentGenerator = new StructuredContentGenerator(this._contentManager, japaneseUtil, document);
this._pronunciationGenerator = new PronunciationGenerator(japaneseUtil);
}
@@ -347,11 +347,8 @@ class DisplayGenerator {
_createTermDefinitionEntryStructuredContent(content, dictionary) {
const node = this._templates.instantiate('gloss-item');
- const child = this._structuredContentGenerator.createStructuredContent(content, dictionary);
- if (child !== null) {
- const contentContainer = node.querySelector('.gloss-content');
- contentContainer.appendChild(child);
- }
+ const contentContainer = node.querySelector('.gloss-content');
+ this._structuredContentGenerator.appendStructuredContent(contentContainer, content, dictionary);
return node;
}