Fix logging in IE9

This commit is contained in:
MoyuScript 2014-03-02 16:55:40 +02:00
parent f344a350d5
commit f2e585be23

View File

@ -1,5 +1,5 @@
function log() {
if (window.html2canvas.logging && window.console && window.console.log) {
window.console.log.apply(window.console, [(Date.now() - window.html2canvas.start) + "ms", "html2canvas:"].concat([].slice.call(arguments, 0)));
Function.prototype.bind.call(window.console.log, (window.console)).apply(window.console, [(Date.now() - window.html2canvas.start) + "ms", "html2canvas:"].concat([].slice.call(arguments, 0)));
}
}