update components
This commit is contained in:
parent
9f72147880
commit
576b872bde
9 changed files with 38 additions and 36 deletions
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.0.30",
|
||||
"_release": "1.0.30",
|
||||
"version": "1.0.31",
|
||||
"_release": "1.0.31",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.30",
|
||||
"commit": "9f144d506da6c01cd99f2421953a9f2c5c96e295"
|
||||
"tag": "1.0.31",
|
||||
"commit": "8d350054f19ad1d9cdfc1258baf0f907bcdfb1ae"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
||||
"_target": "~1.0.3",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
(function (globalScope) {
|
||||
define([], function () {
|
||||
|
||||
function myStore(defaultObject) {
|
||||
|
||||
|
@ -45,7 +45,9 @@
|
|||
};
|
||||
}
|
||||
|
||||
globalScope.appStorage = new myStore(globalScope.localStorage);
|
||||
globalScope.sessionStore = new myStore(globalScope.sessionStorage);
|
||||
|
||||
})(this);
|
||||
try {
|
||||
return new myStore(localStorage);
|
||||
} catch (err) {
|
||||
return new myStore();
|
||||
}
|
||||
});
|
|
@ -1,4 +1,4 @@
|
|||
define(['events'], function (Events) {
|
||||
define(['events', 'appStorage'], function (Events, appStorage) {
|
||||
|
||||
return function (key) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue