1
0
Fork 0
forked from 0x2620/oxjs

fix a bug that would keep loadFile from caching files

This commit is contained in:
rlx 2011-10-23 16:00:59 +00:00
commit 925aa8d627
2 changed files with 5 additions and 3 deletions

View file

@ -122,13 +122,15 @@ Ox.load = function() {
};
Ox.Log = (function() {
var filter = /.*?/,
var filter = /*localStorage && localStorage.filter
? new RegExp(localStorage.filter) || */'/.*?/',
that = function() {
Ox.Log.log.apply(null, arguments);
return that;
};
that.filter = function(regexp) {
filter = regexp;
// ...
};
that.log = function() {
if (filter.test(JSON.stringify(arguments))) {