Merge pull request #33 from cobexer/fix-jpeg-export

clear canvas before rendering to allow jpeg export
This commit is contained in:
Niklas von Hertzen
2011-11-26 10:17:35 -08:00
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);
}
};