mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
[Style] JSLint compliance
This commit is contained in:
parent
09519cf6d4
commit
36ac5aa4de
@ -1,3 +1,4 @@
|
||||
/*global define,localStorage*/
|
||||
/**
|
||||
* Stubbed implementation of a persistence provider,
|
||||
* to permit objects to be created, saved, etc.
|
||||
@ -13,20 +14,21 @@ define(
|
||||
as: function (value) {
|
||||
return $q.when(value);
|
||||
}
|
||||
};
|
||||
},
|
||||
provider;
|
||||
|
||||
var setValue = function(key, value) {
|
||||
function setValue(key, value) {
|
||||
localStorage[key] = JSON.stringify(value);
|
||||
};
|
||||
}
|
||||
|
||||
var getValue = function(key) {
|
||||
function getValue(key) {
|
||||
if (localStorage[key]) {
|
||||
return JSON.parse(localStorage[key]);
|
||||
}
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
var provider = {
|
||||
provider = {
|
||||
listSpaces: function () {
|
||||
return promises.as(spaces);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user