storage utility now returns empty string vs empty object

This commit is contained in:
Mottie 2014-03-09 17:53:34 -05:00
parent 2402d2c3b6
commit d34a6a1a74

View File

@ -125,7 +125,7 @@ ts.storage = function(table, key, value, options) {
document.cookie = key + '=' + (JSON.stringify(values)).replace(/\"/g,'\"') + '; expires=' + date.toGMTString() + '; path=/';
}
} else {
return values && values[url] ? values[url][id] : {};
return values && values[url] ? values[url][id] : '';
}
};