Fix tests

This commit is contained in:
lilia 2015-03-11 20:41:15 -07:00
parent f1309b71c1
commit 04796e56d1

View file

@ -44,8 +44,10 @@
return this.get('type') === 'incoming'; return this.get('type') === 'incoming';
}, },
getContact: function() { getContact: function() {
if (this.collection) {
return this.collection.conversation.contactCollection.get(this.get('source')); return this.collection.conversation.contactCollection.get(this.get('source'));
} }
}
}); });
Whisper.MessageCollection = Backbone.Collection.extend({ Whisper.MessageCollection = Backbone.Collection.extend({