fix semicolons

This commit is contained in:
rolux 2014-08-19 10:19:59 +02:00
commit 1b90cc6ac8
12 changed files with 38 additions and 38 deletions

View file

@ -116,8 +116,7 @@ Ox.localStorage = function(namespace) {
// this will fail if third party cookies/storage is not allowed
localStorage = window.localStorage || {};
// FF 3.6 can't assign to or iterate over localStorage
for (var key in localStorage) {};
for (var key in localStorage) {}
// In Safari (OS X or iOS) is in private browsing mode,
// it appears as though localStorage is available,
// but trying to call .setItem throws an exception.
@ -147,11 +146,11 @@ Ox.localStorage = function(namespace) {
ret = storage;
}
return ret;
};
}
// IE 8 doesn't like `storage.delete`
storage['delete'] = function() {
var keys = arguments.length == 0 ? Object.keys(storage())
: Ox.slice(arguments)
: Ox.slice(arguments);
keys.forEach(function(key) {
delete localStorage[namespace + '.' + key];
});
@ -276,7 +275,7 @@ Ox.print = function() {
Ox.trace = function() {
var args = Ox.slice(arguments);
try {
throw new Error()
throw new Error();
} catch (e) {
if (e.stack) {
args.push('\n' + e.stack.split('\n').slice(2).join('\n'));