phantomjs has Function.prototype.bind undefined.
This commit is contained in:
parent
10f23175cf
commit
2420670104
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var $, $$, Anonymize, AutoGIF, Board, Build, Clone, Conf, Config, FileInfo, Get, ImageHover, Main, Post, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, Quotify, Redirect, RevealSpoilers, Sauce, Thread, ThreadUpdater, Time, UI, d, g, unitTesting,
|
||||
var $, $$, Anonymize, AutoGIF, Board, Build, Clone, Conf, Config, FileInfo, Get, ImageHover, Main, Post, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, Quotify, Redirect, RevealSpoilers, Sauce, Thread, ThreadUpdater, Time, UI, d, g, unitTesting, _base,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
@ -379,7 +379,7 @@
|
||||
MINUTE: 1000 * 60,
|
||||
HOUR: 1000 * 60 * 60,
|
||||
DAY: 1000 * 60 * 60 * 24,
|
||||
log: console.log.bind(console),
|
||||
log: typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0,
|
||||
engine: /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0].toLowerCase(),
|
||||
id: function(id) {
|
||||
return d.getElementById(id);
|
||||
@ -1483,8 +1483,8 @@
|
||||
return $.add(this.nodes.info, container);
|
||||
},
|
||||
getContainer: function(id) {
|
||||
var _base;
|
||||
return (_base = this.containers)[id] || (_base[id] = $.el('span', {
|
||||
var _base1;
|
||||
return (_base1 = this.containers)[id] || (_base1[id] = $.el('span', {
|
||||
className: 'container'
|
||||
}));
|
||||
}
|
||||
|
||||
@ -16,7 +16,8 @@ $.extend $,
|
||||
MINUTE: 1000 * 60
|
||||
HOUR : 1000 * 60 * 60
|
||||
DAY : 1000 * 60 * 60 * 24
|
||||
log: console.log.bind console
|
||||
# XXX http://code.google.com/p/phantomjs/issues/detail?id=522
|
||||
log: console.log.bind? console
|
||||
engine: /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0].toLowerCase()
|
||||
id: (id) ->
|
||||
d.getElementById id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user