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

Unified Diff: remoting/webapp/me2mom/client_screen.js

Issue 8568038: Create HostList class to facilitate future work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: remoting/webapp/me2mom/client_screen.js
diff --git a/remoting/webapp/me2mom/client_screen.js b/remoting/webapp/me2mom/client_screen.js
index f7f15df3abddb880b2c2e9f3db7f9d7016596c43..3342d95f9674f277a6a0999197bbe56e0203e65e 100644
--- a/remoting/webapp/me2mom/client_screen.js
+++ b/remoting/webapp/me2mom/client_screen.js
@@ -392,8 +392,9 @@ function recenterToolbar_() {
* @return {void} Nothing.
*/
remoting.connectHost = function(hostId) {
- for (var i = 0; i < remoting.hostList.length; ++i) {
- var host = remoting.hostList[i];
+ for (var i = 0; i < remoting.hostList.hosts.length; ++i) {
+ /** @type {remoting.Host} */
Wez 2011/11/16 21:41:23 Does this annotation apply to the var definition?
Jamie 2011/11/16 22:09:09 Yes. For some reason, JSCompiler can't infer the t
+ var host = remoting.hostList.hosts[i];
if (host.hostId != hostId)
continue;

Powered by Google App Engine
This is Rietveld 408576698