console.log.bind
This commit is contained in:
parent
f28964138e
commit
e20d07e1be
@ -64,7 +64,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, VERSION, anonymize, conf, config, cooldown, d, engine, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, nav, options, qr, quoteBacklink, quoteDR, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher;
|
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, VERSION, anonymize, conf, config, cooldown, d, engine, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, nav, options, qr, quoteBacklink, quoteDR, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher, _base;
|
||||||
var __slice = Array.prototype.slice;
|
var __slice = Array.prototype.slice;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -171,11 +171,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof console !== "undefined" && console !== null) {
|
log = typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0;
|
||||||
log = function(arg) {
|
|
||||||
return console.log(arg);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Object.keys) {
|
if (!Object.keys) {
|
||||||
Object.keys = function(o) {
|
Object.keys = function(o) {
|
||||||
|
|||||||
@ -98,11 +98,7 @@ 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`
|
log = console.log.bind? console
|
||||||
if console?
|
|
||||||
# XXX scriptish - console.log.apply is not a function
|
|
||||||
log = (arg) ->
|
|
||||||
console.log arg
|
|
||||||
|
|
||||||
# XXX opera cannot into Object.keys
|
# XXX opera cannot into Object.keys
|
||||||
if not Object.keys
|
if not Object.keys
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user