aboutsummaryrefslogtreecommitdiffstats
path: root/js/xal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xal.js')
-rw-r--r--js/xal.js56
1 files changed, 28 insertions, 28 deletions
diff --git a/js/xal.js b/js/xal.js
index ec37a6c..3f30ce2 100644
--- a/js/xal.js
+++ b/js/xal.js
@@ -29,47 +29,47 @@
ηMatrix.XAL = (function(){
-/******************************************************************************/
+ /******************************************************************************/
-var exports = {};
-var noopFunc = function(){};
+ var exports = {};
+ var noopFunc = function(){};
-/******************************************************************************/
+ /******************************************************************************/
-exports.keyvalSetOne = function(key, val, callback) {
- var bin = {};
- bin[key] = val;
- vAPI.storage.set(bin, callback || noopFunc);
-};
+ exports.keyvalSetOne = function(key, val, callback) {
+ var bin = {};
+ bin[key] = val;
+ vAPI.storage.set(bin, callback || noopFunc);
+ };
-/******************************************************************************/
+ /******************************************************************************/
-exports.keyvalGetOne = function(key, callback) {
- vAPI.storage.get(key, callback);
-};
+ exports.keyvalGetOne = function(key, callback) {
+ vAPI.storage.get(key, callback);
+ };
-/******************************************************************************/
+ /******************************************************************************/
-exports.keyvalSetMany = function(dict, callback) {
- vAPI.storage.set(dict, callback || noopFunc);
-};
+ exports.keyvalSetMany = function(dict, callback) {
+ vAPI.storage.set(dict, callback || noopFunc);
+ };
-/******************************************************************************/
+ /******************************************************************************/
-exports.keyvalRemoveOne = function(key, callback) {
- vAPI.storage.remove(key, callback || noopFunc);
-};
+ exports.keyvalRemoveOne = function(key, callback) {
+ vAPI.storage.remove(key, callback || noopFunc);
+ };
-/******************************************************************************/
+ /******************************************************************************/
-exports.keyvalRemoveAll = function(callback) {
- vAPI.storage.clear(callback || noopFunc);
-};
+ exports.keyvalRemoveAll = function(callback) {
+ vAPI.storage.clear(callback || noopFunc);
+ };
-/******************************************************************************/
+ /******************************************************************************/
-return exports;
+ return exports;
-/******************************************************************************/
+ /******************************************************************************/
})();