+ },
+ updateFeedInfo: function() {
+ this.$.api.getFeedInfo();
+ },
+ gotFeedInfo: function(inSender, inEvent) {
+ this.$.feedButton.addRemoveClass('new', inEvent.new > 0);
+ if (inEvent.new > 0) {
+ this.$.feedButton.setContent('Stalk Your Victims (' + inEvent.new + ')');
+ } else {
+ this.$.feedButton.setContent('Stalk Your Victims');
+ }
+ },
+ chatterClicked: function() {
+ window.location.href = '/#/ref/' + this.username;
+ this.bubble('onNavigate');
+ },
+ feedClicked: function() {
+ window.location.href = '/#/feed';
+ this.bubble('onNavigate');
+ },
+ clearFeedStatus: function() {
+ this.gotFeedInfo(this, {new: 0});