diff --git a/js-deps/backbone.localStorage.js b/js-deps/backbone.localStorage.js index a842cf9a..7db8a66e 100644 --- a/js-deps/backbone.localStorage.js +++ b/js-deps/backbone.localStorage.js @@ -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(",")); },