- Fetch images of current element only

This commit is contained in:
Fritz Elfert 2013-04-05 18:06:37 +02:00
parent 822311ed0c
commit 9b051b8749

View File

@ -12,7 +12,7 @@ _html2canvas.Preload = function( options ) {
count = 0,
element = options.elements[0] || document.body,
doc = element.ownerDocument,
domImages = doc.images, // TODO probably should limit it to images present in the element only
domImages = element.getElementsByTagName('img'), // Fetch images of the present element only
imgLen = domImages.length,
link = doc.createElement("a"),
supportCORS = (function( img ){
@ -327,4 +327,4 @@ _html2canvas.Preload = function( options ) {
return methods;
};
};