Retrieve a model from local storage by model id * @param {Model} model - The Backbone Model to lookup * @returns {Model} The model from LocalStorage
(model)
| 95 | * @returns {Model} The model from LocalStorage |
| 96 | */ |
| 97 | find(model) { |
| 98 | return this.serializer.deserialize(this._getItem(this._itemName(model.id))); |
| 99 | } |
| 100 | |
| 101 | /** Return all models from LocalStorage |
| 102 | * @returns {Array} The array of models stored |