We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be249c8 commit a8d1f8fCopy full SHA for a8d1f8f
1 file changed
src/preloadjs/loaders/ImageLoader.js
@@ -158,10 +158,12 @@ this.createjs = this.createjs || {};
158
} else {
159
tag.onload = createjs.proxy(function() {
160
successCallback(this._tag);
161
+ tag.onload = tag.onerror = null;
162
}, this);
163
- tag.onerror = createjs.proxy(function() {
164
- errorCallback(new createjs.ErrorEvent('IMAGE_FORMAT'));
+ tag.onerror = createjs.proxy(function(event) {
165
+ errorCallback(new createjs.ErrorEvent('IMAGE_FORMAT', null, event));
166
167
168
}
169
};
0 commit comments