Browse Source

Reverted images.js

v3_develop
Brendon Page 9 years ago
parent
commit
1835a56875
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      lib/network/Images.js

+ 0
- 15
lib/network/Images.js View File

@ -7,14 +7,6 @@ function Images() {
this.callback = undefined;
}
Images.prototype._resolveRelativeUrl = function(url){
var img = document.createElement('img');
img.src = url; // set string url
url = img.src; // get qualified url
img.src = null; // no server request
return url;
}
/**
* Set an onload callback function. This will be called each time an image
* is loaded
@ -60,13 +52,6 @@ Images.prototype.load = function(url, brokenUrl) {
me.callback(this);
}
}
else if (this.src === me._resolveRelativeUrl(brokenUrl)){
console.error("Could not load brokenImage:", brokenUrl);
delete this.src;
if (me.callback) {
me.callback(this);
}
}
else {
this.src = brokenUrl;
}

Loading…
Cancel
Save