[Style] JSLint compliance

This commit is contained in:
larkin
2015-07-24 16:47:31 -07:00
committed by Pete Richards
parent 09519cf6d4
commit 36ac5aa4de

View File

@@ -1,3 +1,4 @@
/*global define,localStorage*/
/** /**
* Stubbed implementation of a persistence provider, * Stubbed implementation of a persistence provider,
* to permit objects to be created, saved, etc. * to permit objects to be created, saved, etc.
@@ -13,20 +14,21 @@ define(
as: function (value) { as: function (value) {
return $q.when(value); return $q.when(value);
} }
}; },
provider;
var setValue = function(key, value) { function setValue(key, value) {
localStorage[key] = JSON.stringify(value); localStorage[key] = JSON.stringify(value);
}; }
var getValue = function(key) { function getValue(key) {
if (localStorage[key]) { if (localStorage[key]) {
return JSON.parse(localStorage[key]); return JSON.parse(localStorage[key]);
} }
return {}; return {};
}; }
var provider = { provider = {
listSpaces: function () { listSpaces: function () {
return promises.as(spaces); return promises.as(spaces);
}, },