fix some localStorage bugs

This commit is contained in:
rolux 2011-12-31 02:11:54 +05:30
parent cd6304d8b7
commit 09a3537dc1

View file

@ -135,7 +135,7 @@ Ox.localStorage <o> localStorage wrapper
Ox.localStorage = function(namespace) { Ox.localStorage = function(namespace) {
window.localStorage = window.localStorage || {}; window.localStorage = window.localStorage || {};
function storage(key, val) { function storage(key, val) {
var ret, value; var args, ret, value;
if (arguments.length == 0) { if (arguments.length == 0) {
ret = {}; ret = {};
Ox.forEach(localStorage, function(val, key) { Ox.forEach(localStorage, function(val, key) {