jellyfin-web/dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js

21 lines
429 B
JavaScript
Raw Normal View History

2016-08-13 21:30:59 -07:00
define([], function () {
function myStore(defaultObject) {
this.localData = {};
}
myStore.prototype.setItem = function (name, value) {
this.localData[name] = value;
};
myStore.prototype.getItem = function (name) {
return this.localData[name];
};
myStore.prototype.removeItem = function (name) {
this.localData[name] = null;
};
return new myStore();
});