mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
22 lines
447 B
JavaScript
22 lines
447 B
JavaScript
define([], function () {
|
|
'use strict';
|
|
|
|
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();
|
|
}); |