Fix IE issues

This commit is contained in:
Niklas von Hertzen 2014-01-26 20:43:50 +02:00
parent 729bc88d1f
commit 9ebae161e2
2 changed files with 5 additions and 2 deletions

View File

@ -9,5 +9,8 @@ function ImageContainer(src, cors) {
image.crossOrigin = "anonymous";
}
image.src = src;
if (image.complete === true) {
resolve(image);
}
});
}

View File

@ -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() {