mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
some whitespace/warning cleanup
This commit is contained in:
parent
0674543ab1
commit
cfde57cb9f
@ -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];
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,10 @@
|
|||||||
'src/plugins/jquery.plugin.html2canvas'
|
'src/plugins/jquery.plugin.html2canvas'
|
||||||
],
|
],
|
||||||
relFiles = [
|
relFiles = [
|
||||||
'//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],
|
||||||
@ -37,12 +36,12 @@
|
|||||||
el.onerror = function() {
|
el.onerror = function() {
|
||||||
_.statusline.style.color = 'red';
|
_.statusline.style.color = 'red';
|
||||||
_.statusline.innerHTML = _.statusline.innerHTML + ' failed';
|
_.statusline.innerHTML = _.statusline.innerHTML + ' failed';
|
||||||
_.statusline.onclick = function() {
|
_.statusline.onclick = function() {
|
||||||
_.statusline.parentNode.removeChild(_.statusline);
|
_.statusline.parentNode.removeChild(_.statusline);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
if (_.files[_.index].substr(0, 2) === '//') {
|
if (_.files[_.index].substr(0, 2) === '//') {
|
||||||
el.src = _.files[_.index];
|
el.src = _.files[_.index];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
el.src = server + '/' + _.files[_.index] + '.js';
|
el.src = server + '/' + _.files[_.index] + '.js';
|
||||||
@ -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