Avoid background thread overwriting outgoing messages

This commit is contained in:
lilia 2014-10-15 19:01:30 -07:00
parent d7edfd4efb
commit 7a6c15bb32

View file

@ -70,6 +70,8 @@ extend(Backbone.LocalStorage.prototype, {
// Save the current state of the **Store** to *localStorage*.
save: function() {
var store = this.localStorage().getItem(this.name);
this.records = _.union(this.records, store && store.split(","));
this.localStorage().setItem(this.name, this.records.join(","));
},