| Index: remoting/webapp/crd/js/hangout_session.js
|
| diff --git a/remoting/webapp/crd/js/hangout_session.js b/remoting/webapp/crd/js/hangout_session.js
|
| index 7776f156d57861c4b8bbda3b8d7d6207bf07a78e..32d0200d3de42c596e35bd25e8fd5b301d658012 100644
|
| --- a/remoting/webapp/crd/js/hangout_session.js
|
| +++ b/remoting/webapp/crd/js/hangout_session.js
|
| @@ -43,16 +43,16 @@ remoting.HangoutSession.prototype.init = function() {
|
| };
|
|
|
| /**
|
| - * @param {remoting.ClientSession.State} state
|
| + * @param {remoting.ClientSession.State=} state
|
| */
|
| remoting.HangoutSession.prototype.onSessionStateChanged_ = function(state) {
|
| var State = remoting.ClientSession.State;
|
| try {
|
| this.port_.postMessage({method: 'sessionStateChanged', state: state});
|
| - } catch (e) {
|
| + } catch (/** @type {*} */ e) {
|
| // postMessage will throw an exception if the port is disconnected.
|
| // We can safely ignore this exception.
|
| - var error = /** @type {Error} */ e;
|
| + var error = /** @type {Error} */ (e);
|
| console.error(error);
|
| } finally {
|
| if (state === State.FAILED || state === State.CLOSED) {
|
| @@ -79,4 +79,4 @@ remoting.hangoutSessionEvents = new base.EventSource();
|
| remoting.hangoutSessionEvents.sessionStateChanged = "sessionStateChanged";
|
|
|
| remoting.hangoutSessionEvents.defineEvents(
|
| - [remoting.hangoutSessionEvents.sessionStateChanged]);
|
| + [remoting.hangoutSessionEvents.sessionStateChanged]);
|
|
|