Skip to content

Commit

Permalink
Fixed loader bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Eemeli Kelokorpi committed Mar 5, 2014
1 parent 72385ef commit b307987
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/engine/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12229,7 +12229,7 @@ PIXI.AssetLoader.prototype.load = function()
var scope = this;

function onLoad(evt) {
scope.onAssetLoaded(evt.loader);
scope.onAssetLoaded(evt.content);
}

this.loadCount = this.assetURLs.length;
Expand Down Expand Up @@ -12408,7 +12408,6 @@ PIXI.JsonLoader.prototype.onJSONLoaded = function () {
}
else
{
PIXI.JsonCache[this.url] = this.json;
this.onLoaded();
}
}
Expand All @@ -12419,8 +12418,6 @@ PIXI.JsonLoader.prototype.onJSONLoaded = function () {
}
};

PIXI.JsonCache = {};

/**
* Invoke when json file loaded
*
Expand Down Expand Up @@ -14324,6 +14321,5 @@ game.HitCircle = PIXI.Circle;
game.HitEllipse = PIXI.Ellipse;
game.HitPolygon = PIXI.Polygon;
game.TextureCache = PIXI.TextureCache;
game.JsonCache = PIXI.JsonCache;

});

0 comments on commit b307987

Please sign in to comment.