clear canvas before rendering to allow jpeg export

* normally when exporting jpeg any pixel that was transparent
   becomes black, make them white
 * check for window.console.log before use (avoid crash)
 * html2canvas.Parse: fix missing call to html2canvas.Util.Extend for the
   given options
This commit is contained in:
Obexer Christoph
2011-11-18 11:53:26 +01:00
parent 2a3d6a0a35
commit 044b612d6e
3 changed files with 10 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ var html2canvas = {};
html2canvas.logging = true;
html2canvas.log = function (a) {
if (html2canvas.logging) {
if (html2canvas.logging && window.console && window.console.log) {
window.console.log(a);
}
};