my bad
This commit is contained in:
parent
a83519cb2c
commit
cbf41019b9
14
src/bt.js
14
src/bt.js
|
@ -207,16 +207,14 @@ var $bt = {
|
||||||
|
|
||||||
// alias localStorage
|
// alias localStorage
|
||||||
var $l = {
|
var $l = {
|
||||||
var ls = localStorage;
|
clear : function() { return localStorage.clear(); },
|
||||||
clear : function() { return ls.clear(); },
|
get : function(key) { return localStorage.getItem(key); },
|
||||||
get : function(key) { return ls.getItem(key); },
|
rem : function(key) { return localStorage.removeItem(key); },
|
||||||
rem : function(key) { return ls.removeItem(key); },
|
set : function(key, value) { return localStorage.setItem(key, value); }
|
||||||
set : function(key, value) { return ls.setItem(key, value); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// alias json
|
// alias json
|
||||||
var $j = {
|
var $j = {
|
||||||
var j = JSON;
|
str : function(data) { return JSON.stringify(data); },
|
||||||
str : function(data) { return j.stringify(data); },
|
obj : function(str) { return JSON.parse(str); }
|
||||||
obj : function(str) { return j.parse(str); }
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user