diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index 122a1ddf..a6ef8435 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -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) {