From 0795826d0e35b88e9abeb0ca96e5c613d545f408 Mon Sep 17 00:00:00 2001
From: MoyuScript <i@moyu.moe>
Date: Mon, 18 Jul 2011 22:43:07 +0300
Subject: [PATCH] fixed logger

---
 src/Util.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Util.js b/src/Util.js
index 6c3eb39..98d669a 100644
--- a/src/Util.js
+++ b/src/Util.js
@@ -4,9 +4,11 @@ html2canvas.prototype.log = function(a){
     
     if (this.opts.logging){
         
-        var logger = window.console.log || function(log){
-            alert(log);
-        };
+        if (window.console && window.console.log){
+           console.log(a);     
+        }else{
+            alert(a);
+        }
     /*
         if (typeof(window.console) != "undefined" && console.log){
             console.log(a);