+ inEvent.preventDefault();
+ return true;
+ },
+ logoutClicked: function() {
+ this.bubble('onTryLogout');
+ return true;
+ },
+ login: function(inSender, inEvent) {
+ this.$.password.setValue('');
+ this.setLoggedIn(true);
+ this.$.userlink.setAttribute('href', '/#' + inEvent.username);
+ this.$.userlink.setContent('@' + inEvent.username);
+ this.username = inEvent.username;
+ },
+ logout: function(inSender, inEvent) {
+ this.setLoggedIn(false);
+ },
+ spewToggle: function(inSender, inEvent) {
+ this.postShowing = !this.postShowing;
+ this.bubble('onPostVisibility', {showing: this.postShowing});
+ },
+ postVisibilityUpdate: function(inSender, inEvent) {
+ this.postShowing = inEvent.showing;
+ this.$.spewButton.addRemoveClass('active', inEvent.showing);