Use generic Backbone collection for inbox
There's no need to use a custom collection type here since we don't use any of the ConversationCollection methods. This helps prevent the introduction of duplicate models for the same chat. // FREEBIE
This commit is contained in:
parent
2ab7315c80
commit
949cb8d8e3
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
var conversations = new Whisper.ConversationCollection();
|
||||
|
||||
window.inbox = new Whisper.ConversationCollection([], {
|
||||
window.inbox = new Backbone.Collection([], {
|
||||
comparator: function(model) {
|
||||
return -model.get('active_at');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue