update Ox.Log

This commit is contained in:
rlx 2011-11-04 16:13:56 +00:00
parent ba494eb064
commit 9422780d65

View file

@ -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) {