in Ox.localStorage, use native for in loop to test if the browser can iterate over localStorage
This commit is contained in:
parent
f44db6ff18
commit
5ca1c5b36c
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ Ox.localStorage = function(namespace) {
|
||||||
// this will fail if third party cookies/storage is not allowed
|
// this will fail if third party cookies/storage is not allowed
|
||||||
localStorage = window.localStorage || {};
|
localStorage = window.localStorage || {};
|
||||||
// FF 3.6 can't assign to or iterate over localStorage
|
// FF 3.6 can't assign to or iterate over localStorage
|
||||||
Ox.forEach(localStorage, function(value, key) {});
|
for (var key in localStorage) {};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
localStorage = {};
|
localStorage = {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue