(function() {

window.TitleView = Backbone.View.extend({

  initialize: function(opts) {
    this.model.on('change', this.render, this);
    this.collection.on('reset', this.setChannelUnread, this);
  },

  render: function() {
    document.title = (this.countString() + this.factlinkTitle());
  },

  factlinkTitle: function(){
    return "Factlink — Because the web needs what you know";
  },

  countString: function() {
    var count = this.model.totalUnreadCount();

    if (count > 0) {
      return "(" + count + ") ";
    } else {
      return "";
    }
  },

  setChannelUnread: function(collection) {
    this.model.set('channelUnreadCount', collection.unreadCount());
  }
});

}());

@@ -159,16 +159,23 @@
 n('reset
+ change
 ', this.
@@ -224,24 +224,69 @@
 unction() %7B%0A
+    console.info(%22window.TitleView:render%22);%0A
     document
@@ -642,26 +642,16 @@
 unction(
-collection
 ) %7B%0A    
@@ -687,16 +687,21 @@
 Count', 
+this.
 collecti

Change title on collection change