fixed logger

This commit is contained in:
Niklas von Hertzen 2011-07-18 22:43:07 +03:00
parent 7ac9042f33
commit 24b096e113

View File

@ -4,9 +4,11 @@ html2canvas.prototype.log = function(a){
if (this.opts.logging){ if (this.opts.logging){
var logger = window.console.log || function(log){ if (window.console && window.console.log){
alert(log); console.log(a);
}; }else{
alert(a);
}
/* /*
if (typeof(window.console) != "undefined" && console.log){ if (typeof(window.console) != "undefined" && console.log){
console.log(a); console.log(a);