mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
21 lines
429 B
JavaScript
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();
|
|
}); |