Chromium Code Reviews| 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; |