enable filter on change

This commit is contained in:
rlx 2011-11-04 18:11:45 +00:00
parent d6cbc594bc
commit 241fa3e227

View file

@ -121,6 +121,9 @@ Ox.load = function() {
}); });
}; };
/*@
Ox.Log <f> Logging module
@*/
Ox.Log = (function() { Ox.Log = (function() {
var log = localStorage && localStorage.OxLog var log = localStorage && localStorage.OxLog
? JSON.parse(localStorage.OxLog) ? JSON.parse(localStorage.OxLog)
@ -141,6 +144,7 @@ Ox.Log = (function() {
} }
that.filter = function(val) { that.filter = function(val) {
if (!Ox.isUndefined(val)) { if (!Ox.isUndefined(val)) {
that.filter.enable();
log.filter = Ox.toArray(val); log.filter = Ox.toArray(val);
save(); save();
} }