зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
96fd8d0a02
Коммит
db9b6f9781
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче