jeromegn/Backbone.localStorage

Rename to BackboneStorage

hugohenrique opened this issue · 1 comments

Hi!
What do you think is to rename StorageBackbone?
I believe it can become more semantic, if you need to use LocalStorage or SessionStorage.

Backbone.Storage = function () {
  // current implementation
};

Backbone.LocalStorage = Backbone.Storage;
Backbone.SessionStorage = Backbone.Storage;

Backbone.LocalStorage.prototype.storage = function () {
  return window.localStorage;
};

Backbone.SessionStorage.prototype.storage = function () {
  return window.sessionStorage;
};

Hi @hugohenrique, while I like the suggestion I think keeping this focused on the localStorage implementation is the right way forward for now, given the limited resources available to the project.