Better type checking for logout event.

This commit is contained in:
Ian Gulliver
2016-01-08 14:34:16 -08:00
parent 67b0b32779
commit e88b11c3a7

View File

@@ -199,7 +199,8 @@ BabyStats.prototype.onLogin_ = function(e) {
* @private * @private
*/ */
BabyStats.prototype.onLogout_ = function(e) { BabyStats.prototype.onLogout_ = function(e) {
this.loginURL_ = e.detail.login_url; var detail = /** @type {Cosmopolite.typeEventLogoutDetail} */ (e.detail);
this.loginURL_ = detail.login_url;
this.loginRule_.style.visibility = 'visible'; this.loginRule_.style.visibility = 'visible';
this.checkOverlay_(); this.checkOverlay_();
}; };