chnage local storage test to work in FF 16+, fixes #1116

This commit is contained in:
j 2013-01-25 07:14:37 +00:00
parent 4329bd5408
commit 23833d2a11

View file

@ -94,7 +94,7 @@ Ox.localStorage = function(namespace) {
var localStorage = window.localStorage || {};
// FF 3.6 can't assign to or iterate over localStorage
try {
window.localStorage = localStorage;
Ox.forEach(localStorage, function(value, key) {});
} catch (e) {
localStorage = {};
}