Pass loader that completed, fixes #213
This commit is contained in:
parent
09d1354b32
commit
c4a0185c0f
1 changed files with 5 additions and 5 deletions
|
@ -112,8 +112,8 @@ PIXI.AssetLoader.prototype.load = function()
|
|||
{
|
||||
var scope = this;
|
||||
|
||||
function onLoad() {
|
||||
scope.onAssetLoaded();
|
||||
function onLoad(evt) {
|
||||
scope.onAssetLoaded(evt.loader);
|
||||
}
|
||||
|
||||
this.loadCount = this.assetURLs.length;
|
||||
|
@ -145,11 +145,11 @@ PIXI.AssetLoader.prototype.load = function()
|
|||
* @method onAssetLoaded
|
||||
* @private
|
||||
*/
|
||||
PIXI.AssetLoader.prototype.onAssetLoaded = function()
|
||||
PIXI.AssetLoader.prototype.onAssetLoaded = function(loader)
|
||||
{
|
||||
this.loadCount--;
|
||||
this.dispatchEvent({type: 'onProgress', content: this});
|
||||
if (this.onProgress) this.onProgress();
|
||||
this.dispatchEvent({ type: 'onProgress', content: this, loader: loader });
|
||||
if (this.onProgress) this.onProgress(loader);
|
||||
|
||||
if (!this.loadCount)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue