log -> $.log

This commit is contained in:
James Campos 2012-03-15 23:20:06 -07:00
parent 0189630901
commit b814cdf16a
2 changed files with 4 additions and 7 deletions

View File

@ -73,7 +73,7 @@
*/
(function() {
var $, $$, Anonymize, AutoGif, Conf, Config, DAY, ExpandComment, ExpandThread, Favicon, FileInfo, Filter, GetTitle, HOUR, ImageExpand, ImageHover, Keybinds, MINUTE, Main, NAMESPACE, Nav, Options, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, Quotify, Redirect, ReplyHiding, ReportButton, RevealSpoilers, SECOND, Sauce, StrikethroughQuotes, ThreadHiding, ThreadStats, Threading, Time, TitlePost, Unread, Updater, VERSION, Watcher, d, engine, flatten, log, ui, _base;
var $, $$, Anonymize, AutoGif, Conf, Config, DAY, ExpandComment, ExpandThread, Favicon, FileInfo, Filter, GetTitle, HOUR, ImageExpand, ImageHover, Keybinds, MINUTE, Main, NAMESPACE, Nav, Options, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, Quotify, Redirect, ReplyHiding, ReportButton, RevealSpoilers, SECOND, Sauce, StrikethroughQuotes, ThreadHiding, ThreadStats, Threading, Time, TitlePost, Unread, Updater, VERSION, Watcher, d, engine, flatten, ui, _base;
Config = {
main: {
@ -192,8 +192,6 @@
}
};
log = typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0;
Conf = {};
(flatten = function(parent, obj) {
@ -313,6 +311,7 @@
};
$.extend($, {
log: typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0,
ready: function(fc) {
var cb;
if (/interactive|complete/.test(d.readyState)) return setTimeout(fc);

View File

@ -154,10 +154,6 @@ Config =
'Auto Update': [true, 'Automatically fetch new posts']
'Interval': 30
# XXX Chrome can't into {log} = console
# XXX GreaseMonkey can't into console.log.bind
log = console.log.bind? console
# flatten the config
Conf = {}
(flatten = (parent, obj) ->
@ -272,6 +268,8 @@ $.extend = (object, properties) ->
return
$.extend $,
# XXX GreaseMonkey can't into console.log.bind
log: console.log.bind? console
ready: (fc) ->
if /interactive|complete/.test d.readyState
# Execute the functions in parallel.