update components

This commit is contained in:
Luke Pulverenti 2016-01-28 15:45:52 -05:00
parent 9f72147880
commit 576b872bde
9 changed files with 38 additions and 36 deletions

View file

@ -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",

View file

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

View file

@ -1,4 +1,4 @@
define(['events'], function (Events) {
define(['events', 'appStorage'], function (Events, appStorage) {
return function (key) {