diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-26 20:38:08 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-26 20:38:08 +0000 |
commit | 045c5dab7fd4f7813c5c150dade57259609c7ccd (patch) | |
tree | 14b9689672cb5321b10d0db71578fe6c3c7fed4b /remoting | |
parent | 344172595f027c8bf257d7d021067c280fd1f36e (diff) | |
download | chromium_src-045c5dab7fd4f7813c5c150dade57259609c7ccd.zip chromium_src-045c5dab7fd4f7813c5c150dade57259609c7ccd.tar.gz chromium_src-045c5dab7fd4f7813c5c150dade57259609c7ccd.tar.bz2 |
Minor JS cleanup for Chromoting: add semicolons, and call helper function.
BUG=
R=jamiewalch@chromium.org
Review URL: https://codereview.chromium.org/181473004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/webapp/client_session.js | 2 | ||||
-rw-r--r-- | remoting/webapp/event_handlers.js | 2 | ||||
-rw-r--r-- | remoting/webapp/host_table_entry.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js index 7a3f93a..a2b8af8 100644 --- a/remoting/webapp/client_session.js +++ b/remoting/webapp/client_session.js @@ -1381,5 +1381,5 @@ remoting.ClientSession.prototype.onMouseMove_ = function(event) { remoting.ClientSession.prototype.sendClipboardItem = function(mimeType, item) { if (!this.plugin_) return; - this.plugin_.sendClipboardItem(mimeType, item) + this.plugin_.sendClipboardItem(mimeType, item); }; diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js index 82babee..bcbc201 100644 --- a/remoting/webapp/event_handlers.js +++ b/remoting/webapp/event_handlers.js @@ -26,7 +26,7 @@ function onLoad() { if (remoting.currentMode == remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME) { remoting.setMode(remoting.AppMode.CLIENT_UNCONNECTED); } else { - remoting.setMode(remoting.AppMode.HOME); + goHome(); } }; /** @param {Event} event The event. */ diff --git a/remoting/webapp/host_table_entry.js b/remoting/webapp/host_table_entry.js index 779b4fc..27e44ac7 100644 --- a/remoting/webapp/host_table_entry.js +++ b/remoting/webapp/host_table_entry.js @@ -175,7 +175,7 @@ remoting.HostTableEntry.prototype.updateStatus = function(opt_forEdit) { if (clickToConnect) { if (!this.onConnectReference_) { /** @type {string} */ - var encodedHostId = encodeURIComponent(this.host.hostId) + var encodedHostId = encodeURIComponent(this.host.hostId); this.onConnectReference_ = function() { remoting.connectMe2Me(encodedHostId); }; |