This commit is contained in:
James Campos 2011-08-21 23:29:47 -07:00
parent 50dbd920f9
commit 2f01027d08
2 changed files with 26 additions and 26 deletions

View File

@ -145,6 +145,22 @@
'Interval': 30
}
};
if (typeof console !== "undefined" && console !== null) {
log = function() {
return console.log.apply(console, arguments);
};
}
if (!Object.keys) {
Object.keys = function(o) {
var key, _i, _len, _results;
_results = [];
for (_i = 0, _len = o.length; _i < _len; _i++) {
key = o[_i];
_results.push(key);
}
return _results;
};
}
conf = {};
(function(parent, obj) {
var key, val, _results;
@ -165,22 +181,6 @@
return conf[parent] = obj;
}
})(null, config);
if (typeof console !== "undefined" && console !== null) {
log = function() {
return console.log.apply(console, arguments);
};
}
if (!Object.keys) {
Object.keys = function(o) {
var key, _i, _len, _results;
_results = [];
for (_i = 0, _len = o.length; _i < _len; _i++) {
key = o[_i];
_results.push(key);
}
return _results;
};
}
NAMESPACE = 'AEOS.4chan_x.';
SECOND = 1000;
MINUTE = 60 * SECOND;

View File

@ -81,6 +81,16 @@ config =
'Auto Update': [true, 'Automatically fetch new posts']
'Interval': 30
# XXX chrome can't into `{log} = console`
if console?
log = ->
console.log arguments...
# XXX opera cannot into Object.keys
if not Object.keys
Object.keys = (o) ->
key for key in o
# flatten the config
conf = {}
((parent, obj) ->
@ -96,16 +106,6 @@ conf = {}
conf[parent] = obj
) null, config
# XXX chrome can't into `{log} = console`
if console?
log = ->
console.log arguments...
# XXX opera cannot into Object.keys
if not Object.keys
Object.keys = (o) ->
key for key in o
NAMESPACE = 'AEOS.4chan_x.'
SECOND = 1000
MINUTE = 60*SECOND