jellyfin-web/dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js
2016-08-14 00:30:59 -04:00

21 lines
429 B
JavaScript

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();
});