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:
MoyuScript
2011-11-18 11:53:26 +01:00
parent 95c49a3094
commit 70b3886814
3 changed files with 10 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ html2canvas.Parse = function (element, images, opts) {
children,
childrenLen;
options = html2canvas.Util.Extend(opts, options);
images = images || [];
@@ -1254,4 +1255,4 @@ html2canvas.zContext = function(zindex) {
zindex: zindex,
children: []
};
};
};