jellyfish-web/dashboard-ui/bower_components/emby-apiclient/appstorage-memory.js
2018-10-23 01:05:09 +03:00

14 lines
No EOL
403 B
JavaScript

define([], function() {
"use strict";
function MyStore() {
this.localData = {}
}
return 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
}, new MyStore
});