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

Unified Diff: remoting/webapp/crd/js/event_handlers.js

Issue 742473002: [Chromoting] Break up the webapp's init function into smaller chunks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browsertest break by removing onload handler Created 6 years 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 | « remoting/webapp/crd/js/crd_main.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/event_handlers.js
diff --git a/remoting/webapp/crd/js/event_handlers.js b/remoting/webapp/crd/js/event_handlers.js
index 91040b490bf2afeecb03f7de7165b21e87ef3ef6..4348e13934e28b85f37004065354a911023291c7 100644
--- a/remoting/webapp/crd/js/event_handlers.js
+++ b/remoting/webapp/crd/js/event_handlers.js
@@ -7,7 +7,7 @@
/** @suppress {duplicate} */
var remoting = remoting || {};
-function onLoad() {
+remoting.initEventHandlers = function() {
var goHome = function() {
remoting.setMode(remoting.AppMode.HOME);
};
@@ -115,7 +115,6 @@ function onLoad() {
registerEventListeners(me2me_actions);
registerEventListeners(host_actions);
registerEventListeners(auth_actions);
- remoting.init();
window.addEventListener('resize', remoting.onResize, false);
// When a window goes full-screen, a resize event is triggered, but the
@@ -157,5 +156,3 @@ function registerEventListener(id, eventname, fn) {
': element not found.');
}
}
-
-window.addEventListener('load', onLoad, false);
« no previous file with comments | « remoting/webapp/crd/js/crd_main.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698