jellyfin-web/dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js
2016-10-02 02:13:04 -04:00

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