fix semicolons
This commit is contained in:
parent
4fbfc139b4
commit
1b90cc6ac8
12 changed files with 38 additions and 38 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue