1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js

21 lines
429 B
JavaScript
Raw Normal View History

2016-08-14 00:30:59 -04: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();
});