mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix IE issues
This commit is contained in:
parent
729bc88d1f
commit
9ebae161e2
@ -9,5 +9,8 @@ function ImageContainer(src, cors) {
|
||||
image.crossOrigin = "anonymous";
|
||||
}
|
||||
image.src = src;
|
||||
if (image.complete === true) {
|
||||
resolve(image);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -28,12 +28,12 @@ NodeContainer.prototype.css = function(attribute) {
|
||||
|
||||
NodeContainer.prototype.cssInt = function(attribute) {
|
||||
var value = parseInt(this.css(attribute), 10);
|
||||
return (Number.isNaN(value)) ? 0 : value; // borders in old IE are throwing 'medium' for demo.html
|
||||
return (isNaN(value)) ? 0 : value; // borders in old IE are throwing 'medium' for demo.html
|
||||
};
|
||||
|
||||
NodeContainer.prototype.cssFloat = function(attribute) {
|
||||
var value = parseFloat(this.css(attribute));
|
||||
return (Number.isNaN(value)) ? 0 : value;
|
||||
return (isNaN(value)) ? 0 : value;
|
||||
};
|
||||
|
||||
NodeContainer.prototype.fontWeight = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user