From 94428a1b2d7f69e9fd5f61fc814edadfc0b368e0 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Mon, 11 May 2015 18:48:27 +0900 Subject: [PATCH] Fix typo: handle DOMContentLoaded events correctly --- content/treestyletab/treestyletab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 16c30415..155db441 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1,7 +1,7 @@ (function() { /** * On secondary (and later) window, SSWindowStateBusy event can be fired - * before DOMContentLoad, on "domwindowopened". + * before DOMContentLoaded, on "domwindowopened". */ var SSWindowStateBusyListener = function TSTSSWindowStateBusyListener(aEvent) { window.removeEventListener(aEvent.type, TSTSSWindowStateBusyListener, false); @@ -9,8 +9,8 @@ SSWindowStateBusyListener = undefined; }; window.addEventListener('SSWindowStateBusy', SSWindowStateBusyListener, false); - window.addEventListener('DOMContentLoad', function onDOMContentLoad(aEvent) { - window.removeEventListener(aEvent.type, onDOMContentLoad, false); + window.addEventListener('DOMContentLoaded', function onDOMContentLoaded(aEvent) { + window.removeEventListener(aEvent.type, onDOMContentLoaded, false); if (SSWindowStateBusyListener) { window.removeEventListener('SSWindowStateBusy', TSTSSWindowStateBusyListener, false); SSWindowStateBusyListener = undefined;