bug fixes

This commit is contained in:
Niklas von Hertzen
2012-03-03 21:03:59 +02:00
parent 4579fb25c6
commit 3d7a6374ad
6 changed files with 78 additions and 71 deletions

View File

@ -213,6 +213,7 @@ _html2canvas.Util.Children = function(el) {
var children;
try {
children = $(el).contents();
// children = (el.nodeName && el.nodeName.toUpperCase() === "IFRAME") ? el.contentDocument || el.contentWindow.document : Array.prototype.push.call([], el.childNodes );
} catch (ex) {
h2clog("html2canvas.Util.Children failed with exception: " + ex.message);
children = [];