set up a new view for displaying the network status
// FREEBIE
This commit is contained in:
parent
e4a21d1a53
commit
ed4991974b
13 changed files with 326 additions and 76 deletions
|
@ -32,12 +32,18 @@
|
|||
return { unreadCount : 0 };
|
||||
},
|
||||
|
||||
handleMessageError: function(message, errors) {
|
||||
this.trigger('messageError', message, errors);
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
this.contactCollection = new Backbone.Collection();
|
||||
this.messageCollection = new Whisper.MessageCollection([], {
|
||||
conversation: this
|
||||
});
|
||||
|
||||
this.messageCollection.on('change:errors', this.handleMessageError, this);
|
||||
|
||||
this.on('change:avatar', this.updateAvatarUrl);
|
||||
this.on('destroy', this.revokeAvatarUrl);
|
||||
this.on('read', this.onReadMessage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue