update Ox.Log
This commit is contained in:
parent
ba494eb064
commit
9422780d65
1 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,13 @@ Ox.Log = (function() {
|
|||
? JSON.parse(localStorage.OxLog)
|
||||
: {enabled: false, filter: []},
|
||||
that = function() {
|
||||
return that.log.apply(null, arguments);
|
||||
var ret;
|
||||
if (arguments.length == 0) {
|
||||
ret = log.enabled;
|
||||
} else {
|
||||
ret = that.log.apply(null, arguments);
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
function save() {
|
||||
if (localStorage) {
|
||||
|
|
Loading…
Reference in a new issue