Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1895)

Unified Diff: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js

Issue 710033003: [DevTools] Extract part of DevTools into inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/platform/DOMExtension.js ('k') | Source/devtools/scripts/compile_frontend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
diff --git a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
index ae010b4cef652e1d6a05bc64259b7e8b2909fabd..10d794fdb3a393d102c9310d721db306cf4a7261 100644
--- a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
+++ b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
@@ -20,25 +20,6 @@ function toolboxLoaded()
window.opener.WebInspector["app"]["toolboxLoaded"](document);
}
-/**
- * @suppressGlobalPropertiesCheck
- */
-function windowLoaded()
-{
- window.removeEventListener("DOMContentLoaded", windowLoaded, false);
- toolboxLoaded();
-}
-
-/**
- * @suppressGlobalPropertiesCheck
- */
-function initToolbox()
-{
- if (document.readyState === "complete")
- toolboxLoaded();
- else
- window.addEventListener("DOMContentLoaded", windowLoaded, false);
-}
-initToolbox();
+runOnWindowLoad(toolboxLoaded);
})();
« no previous file with comments | « Source/devtools/front_end/platform/DOMExtension.js ('k') | Source/devtools/scripts/compile_frontend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698