Open
Description
Hi, I'm reviewing the getResult function, if _loadItemsById[a] is not undefined and _loadedResults has no item, then the function will return undefined to. I think it seems not a right behavior. I'm running all the asset files on the local storage(not from web server)
b.getResult = function(a, b) {
var c = this._loadItemsById[a] || this._loadItemsBySrc[a];
if (null == c)
return null;
var d = c.id;
return b && this._loadedRawResults[d] ? this._loadedRawResults[d] : this._loadedResults[d]
}
And it seems after this.loader.loadManifest(this.manifest) from local storage,
the _handleFileComplete in the preloadjs does not fired
b._handleFileComplete = function(a) {
var b = a.target, c = b.getItem();
this._loadedResults[c.id] = b.getResult(), b instanceof createjs.XHRLoader && (this._loadedRawResults[c.id] = b.getResult(!0)), this._removeLoadItem(b), this._finishOrderedItem(b) || this._processFinishedLoad(c, b)
}
so the _loadedRawResults has no value. Is there any other way to fire the _handleFileComplete?