log -> $.log
This commit is contained in:
parent
0189630901
commit
b814cdf16a
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(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 = {
|
Config = {
|
||||||
main: {
|
main: {
|
||||||
@ -192,8 +192,6 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
log = typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0;
|
|
||||||
|
|
||||||
Conf = {};
|
Conf = {};
|
||||||
|
|
||||||
(flatten = function(parent, obj) {
|
(flatten = function(parent, obj) {
|
||||||
@ -313,6 +311,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.extend($, {
|
$.extend($, {
|
||||||
|
log: typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0,
|
||||||
ready: function(fc) {
|
ready: function(fc) {
|
||||||
var cb;
|
var cb;
|
||||||
if (/interactive|complete/.test(d.readyState)) return setTimeout(fc);
|
if (/interactive|complete/.test(d.readyState)) return setTimeout(fc);
|
||||||
|
|||||||
@ -154,10 +154,6 @@ Config =
|
|||||||
'Auto Update': [true, 'Automatically fetch new posts']
|
'Auto Update': [true, 'Automatically fetch new posts']
|
||||||
'Interval': 30
|
'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
|
# flatten the config
|
||||||
Conf = {}
|
Conf = {}
|
||||||
(flatten = (parent, obj) ->
|
(flatten = (parent, obj) ->
|
||||||
@ -272,6 +268,8 @@ $.extend = (object, properties) ->
|
|||||||
return
|
return
|
||||||
|
|
||||||
$.extend $,
|
$.extend $,
|
||||||
|
# XXX GreaseMonkey can't into console.log.bind
|
||||||
|
log: console.log.bind? console
|
||||||
ready: (fc) ->
|
ready: (fc) ->
|
||||||
if /interactive|complete/.test d.readyState
|
if /interactive|complete/.test d.readyState
|
||||||
# Execute the functions in parallel.
|
# Execute the functions in parallel.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user