|
@ -23,11 +23,10 @@ Images.prototype.setOnloadCallback = function(callback) { |
|
|
* @return {Image} img The image object |
|
|
* @return {Image} img The image object |
|
|
*/ |
|
|
*/ |
|
|
Images.prototype.load = function(url, brokenUrl) { |
|
|
Images.prototype.load = function(url, brokenUrl) { |
|
|
var img = this.images[url]; |
|
|
|
|
|
if (img === undefined) { |
|
|
|
|
|
|
|
|
if (this.images[url] == undefined) { |
|
|
// create the image
|
|
|
// create the image
|
|
|
var me = this; |
|
|
var me = this; |
|
|
img = new Image(); |
|
|
|
|
|
|
|
|
var img = new Image(); |
|
|
img.onload = function () { |
|
|
img.onload = function () { |
|
|
|
|
|
|
|
|
// IE11 fix -- thanks dponch!
|
|
|
// IE11 fix -- thanks dponch!
|
|
|