mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Merge branch 'master' of https://github.com/niklasvh/html2canvas.git
This commit is contained in:
commit
59306c839b
@ -205,8 +205,7 @@ _html2canvas.Util.BackgroundPosition = function ( el, bounds, image ) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_html2canvas.Util.Extend = function (options, defaults) {
|
_html2canvas.Util.Extend = function (options, defaults) {
|
||||||
var key;
|
for (var key in options) {
|
||||||
for (key in options) {
|
|
||||||
if (options.hasOwnProperty(key)) {
|
if (options.hasOwnProperty(key)) {
|
||||||
defaults[key] = options[key];
|
defaults[key] = options[key];
|
||||||
}
|
}
|
||||||
|
@ -183,6 +183,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
|
|
||||||
images.numLoaded++;
|
images.numLoaded++;
|
||||||
imageObj.succeeded = true;
|
imageObj.succeeded = true;
|
||||||
|
img.onerror = img.onload = null;
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
img.onerror = function() {
|
img.onerror = function() {
|
||||||
@ -207,6 +208,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
images.numLoaded++;
|
images.numLoaded++;
|
||||||
images.numFailed++;
|
images.numFailed++;
|
||||||
imageObj.succeeded = false;
|
imageObj.succeeded = false;
|
||||||
|
img.onerror = img.onload = null;
|
||||||
start();
|
start();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
'//code.jquery.com/jquery-1.6.4.js',
|
'//code.jquery.com/jquery-1.6.4.js',
|
||||||
'html2canvas',
|
'html2canvas',
|
||||||
'jquery.plugin.html2canvas'
|
'jquery.plugin.html2canvas'
|
||||||
],
|
];
|
||||||
i = 0, el = null;
|
|
||||||
var loader = {
|
var loader = {
|
||||||
index: 0,
|
index: 0,
|
||||||
head: document.getElementsByTagName('head')[0],
|
head: document.getElementsByTagName('head')[0],
|
||||||
@ -56,7 +55,8 @@
|
|||||||
delete _.statusline;
|
delete _.statusline;
|
||||||
$(document.documentElement).html2canvas({
|
$(document.documentElement).html2canvas({
|
||||||
logging: debug,
|
logging: debug,
|
||||||
profile: profile
|
profile: profile,
|
||||||
|
proxy: proxy
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user