mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
IE array indexOf fixes
This commit is contained in:
parent
924cd96ab6
commit
ea966da911
@ -32,7 +32,7 @@ html2canvas.prototype.getImages = function(el) {
|
||||
|
||||
html2canvas.prototype.loadImage = function(src){
|
||||
|
||||
var imgIndex = this.images.indexOf(src);
|
||||
var imgIndex = this.getIndex(this.images,src);
|
||||
if (imgIndex!=-1){
|
||||
return this.images[imgIndex+1];
|
||||
}else{
|
||||
@ -43,9 +43,12 @@ html2canvas.prototype.loadImage = function(src){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
html2canvas.prototype.preloadImage = function(src){
|
||||
|
||||
if (this.images.indexOf(src)==-1){
|
||||
|
||||
if (this.getIndex(this.images,src)==-1){
|
||||
this.images.push(src);
|
||||
|
||||
var img = new Image();
|
||||
|
Loading…
Reference in New Issue
Block a user