bug fixes, and further simplification of API

This commit is contained in:
Niklas von Hertzen
2012-03-02 19:07:15 +02:00
parent c7d526c9ea
commit cad3be2c66
5 changed files with 20 additions and 32 deletions

View File

@ -10,20 +10,13 @@
* New function for traversing elements
*/
_html2canvas.Parse = function (element, images, options) {
_html2canvas.Parse = function ( images, options ) {
window.scroll(0,0);
// select body by default
if (element === undefined) {
element = document.body;
}
var support = {
rangeBounds: false
},
element = (( options.elements === undefined ) ? document.body : options.elements[0]), // select body by default
needReorder = false,
numDraws = 0,
fontData = {},