calling addEventListener and passing an object that is not defined yet

fails, which means that code expecting the result of that function call
is somewhat unhappy, to the tune of:
Error: inspector is not defined
Source File: chrome://inspector/content/sidebar.js
Line: 142
r=caillon rs(sr)=neil
This commit is contained in:
timeless%mozdev.org 2004-08-08 21:35:01 +00:00
Родитель 96fd8d0a02
Коммит db9b6f9781
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -54,14 +54,14 @@ const gNavigator = window._content;
//////////////////////////////////////////////////
window.addEventListener("load", InspectorSidebar_initialize, false);
function InspectorSidebar_initialize()
{
inspector = new InspectorSidebar();
inspector.initialize();
}
window.addEventListener("load", InspectorSidebar_initialize, false);
////////////////////////////////////////////////////////////////////////////
//// class InspectorSidebar