bug fixes

This commit is contained in:
MoyuScript
2012-03-03 21:03:59 +02:00
parent 67c5af1822
commit 35fd0ae8bf
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 = [];