updated test.js to allow options

This commit is contained in:
Niklas von Hertzen 2012-03-03 00:52:46 +02:00
parent 0b065ad5d8
commit 7726cd9f39
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ For more information and examples, please visit the <a href="http://html2canvas.
v0.34 - v0.34 -
* Split renderers to their own objects (<a href="#">niklasvh</a>) * Split renderers to their own objects (<a href="https://github.com/niklasvh/html2canvas/commit/94f2f799a457cd29a21cc56ef8c06f1697866739">niklasvh</a>)
* Simplified API, cleaned up code (<a href="https://github.com/niklasvh/html2canvas/commit/c7d526c9eaa6a4abf4754d205fe1dee360c7660e">niklasvh</a>) * Simplified API, cleaned up code (<a href="https://github.com/niklasvh/html2canvas/commit/c7d526c9eaa6a4abf4754d205fe1dee360c7660e">niklasvh</a>)
v0.33 - 2.3.2012 v0.33 - 2.3.2012

View File

@ -13,7 +13,7 @@
timer = date.getTime(); timer = date.getTime();
options = options || {}; options = options || {};
options.onrendered = function( canvas ) { options.onrendered = options.onrendered || function( canvas ) {
var $canvas = $(canvas), var $canvas = $(canvas),
finishTime = new Date(); finishTime = new Date();

View File

@ -17,7 +17,7 @@
window.setUp(); window.setUp();
} }
setTimeout(function() { setTimeout(function() {
$(document.body).html2canvas({ $(document.body).html2canvas((typeof h2cOptions !== "undefined") ? h2cOptions : {
flashcanvas: "../external/flashcanvas.min.js", flashcanvas: "../external/flashcanvas.min.js",
logging: true, logging: true,
profile: true, profile: true,