Remove dependency on JSON support

This commit is contained in:
Matt Kane 2010-11-10 08:44:33 +00:00
parent 8ce7e61ed7
commit 46664c6494

View File

@ -359,22 +359,6 @@ var CupcakeLocalStorage = function() {
);
}
this.setObject = function(key, value) {
this.setItem(key, JSON.stringify(value));
}
this.getObject = function(key) {
try {
var o = this.getItem(key);
if(!o) {
return false;
}
return JSON.parse(o);
} catch (e) {
console.log('bad json ' + o);
return false;
}
}
} catch(e) {
alert("Database error "+e+".");