aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 5bebe0ed..a89008b4 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -16,6 +16,7 @@
*/
/* global
+ * DisplayContentManager
* DisplayGenerator
* DisplayHistory
* DisplayNotification
@@ -24,7 +25,6 @@
* FrameEndpoint
* Frontend
* HotkeyHelpController
- * MediaLoader
* OptionToggleHotkeyHandler
* PopupFactory
* PopupMenu
@@ -52,11 +52,11 @@ class Display extends EventDispatcher {
this._styleNode = null;
this._eventListeners = new EventListenerCollection();
this._setContentToken = null;
- this._mediaLoader = new MediaLoader();
+ this._contentManager = new DisplayContentManager();
this._hotkeyHelpController = new HotkeyHelpController();
this._displayGenerator = new DisplayGenerator({
japaneseUtil,
- mediaLoader: this._mediaLoader,
+ contentManager: this._contentManager,
hotkeyHelpController: this._hotkeyHelpController
});
this._messageHandlers = new Map();
@@ -543,7 +543,7 @@ class Display extends EventDispatcher {
this._closePopups();
this._closeAllPopupMenus();
this._eventListeners.removeAllEventListeners();
- this._mediaLoader.unloadAll();
+ this._contentManager.unloadAll();
this._hideTagNotification(false);
this._triggerContentClear();
this._dictionaryEntries = [];