MCPcopy
hub / github.com/jeromegn/Backbone.localStorage / save

Method save

src/localstorage.js:56–58  ·  view source on GitHub ↗

Save the current status to localStorage * @returns {undefined}

()

Source from the content-addressed store, hash-verified

54 * @returns {undefined}
55 */
56 save() {
57 this._setItem(this.name, this.records.join(','));
58 }
59
60 /** Add a new model with a unique GUID, if it doesn't already have its own ID
61 * @param {Model} model - The Backbone Model to save to LocalStorage

Callers 4

createMethod · 0.95
updateMethod · 0.95
destroyMethod · 0.95

Calls 1

_setItemMethod · 0.95

Tested by

no test coverage detected