|
@ -52,16 +52,25 @@ Images.prototype.load = function(url, brokenUrl) { |
|
|
me.callback(this); |
|
|
me.callback(this); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (me.imageBroken[url] === true) { |
|
|
|
|
|
console.error("Could not load brokenImage:", brokenUrl); |
|
|
|
|
|
delete this.src; |
|
|
|
|
|
if (me.callback) { |
|
|
|
|
|
me.callback(this); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
else { |
|
|
this.src = brokenUrl; |
|
|
|
|
|
me.imageBroken[url] = true; |
|
|
|
|
|
|
|
|
if (me.imageBroken[url] === true) { |
|
|
|
|
|
if (this.src == brokenUrl) { |
|
|
|
|
|
console.error("Could not load brokenImage:", brokenUrl); |
|
|
|
|
|
delete this.src; |
|
|
|
|
|
if (me.callback) { |
|
|
|
|
|
me.callback(this); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
console.error("Could not load image:", url); |
|
|
|
|
|
this.src = brokenUrl; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
console.error("Could not load image:", url); |
|
|
|
|
|
this.src = brokenUrl; |
|
|
|
|
|
me.imageBroken[url] = true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|