mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
af2e209ce4
commit
d4f9f432a4
19 changed files with 130 additions and 113 deletions
|
@ -1,21 +1,22 @@
|
|||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
function myStore(defaultObject) {
|
||||
function MyStore(defaultObject) {
|
||||
|
||||
this.localData = {};
|
||||
}
|
||||
|
||||
myStore.prototype.setItem = function (name, value) {
|
||||
MyStore.prototype.setItem = function (name, value) {
|
||||
this.localData[name] = value;
|
||||
};
|
||||
|
||||
myStore.prototype.getItem = function (name) {
|
||||
MyStore.prototype.getItem = function (name) {
|
||||
return this.localData[name];
|
||||
};
|
||||
|
||||
myStore.prototype.removeItem = function (name) {
|
||||
MyStore.prototype.removeItem = function (name) {
|
||||
this.localData[name] = null;
|
||||
};
|
||||
|
||||
return new myStore();
|
||||
return new MyStore();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue