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

Unified Diff: chrome/browser/resources/options2/options.js

Issue 9994005: Separate handler initialization from page initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: documentation comments Created 8 years, 8 months 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
Index: chrome/browser/resources/options2/options.js
diff --git a/chrome/browser/resources/options2/options.js b/chrome/browser/resources/options2/options.js
index 35441e4414aa7923c8524b67a5fba946defd6118..e4f45434af6efce60d60af45bec4e70f3256245d 100644
--- a/chrome/browser/resources/options2/options.js
+++ b/chrome/browser/resources/options2/options.js
@@ -239,3 +239,8 @@ window.onbeforeunload = function() {
window.onpopstate = function(e) {
options.OptionsPage.setState(e.state);
};
+
+// Initialize handlers now, before the DOMContentLoaded event. This is separate
+// from initializing the pages which happens in load().
+OptionsPage.reinitializeCore();
Dan Beam 2012/04/05 17:58:35 nit: no \n, possibly move above adding DOMContentL
+
« no previous file with comments | « no previous file | chrome/browser/resources/options2/options_page.js » ('j') | chrome/browser/ui/webui/options2/options_ui2.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698