Skip to content

Commit

Permalink
Fixed missing cacheKey parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Jul 14, 2014
1 parent f036583 commit e5078a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/animation/AnimationParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ Phaser.AnimationParser = {
* @method Phaser.AnimationParser.JSONData
* @param {Phaser.Game} game - A reference to the currently running game.
* @param {Object} json - The JSON data from the Texture Atlas. Must be in Array format.
* @param {string} cacheKey - The Game.Cache asset key of the texture image.
* @return {Phaser.FrameData} A FrameData object containing the parsed frames.
*/
JSONData: function (game, json) {
JSONData: function (game, json, cacheKey) {

// Malformed?
if (!json['frames'])
Expand Down Expand Up @@ -165,9 +166,10 @@ Phaser.AnimationParser = {
* @method Phaser.AnimationParser.JSONDataHash
* @param {Phaser.Game} game - A reference to the currently running game.
* @param {Object} json - The JSON data from the Texture Atlas. Must be in JSON Hash format.
* @param {string} cacheKey - The Game.Cache asset key of the texture image.
* @return {Phaser.FrameData} A FrameData object containing the parsed frames.
*/
JSONDataHash: function (game, json) {
JSONDataHash: function (game, json, cacheKey) {

// Malformed?
if (!json['frames'])
Expand Down Expand Up @@ -232,9 +234,10 @@ Phaser.AnimationParser = {
* @method Phaser.AnimationParser.XMLData
* @param {Phaser.Game} game - A reference to the currently running game.
* @param {Object} xml - The XML data from the Texture Atlas. Must be in Starling XML format.
* @param {string} cacheKey - The Game.Cache asset key of the texture image.
* @return {Phaser.FrameData} A FrameData object containing the parsed frames.
*/
XMLData: function (game, xml) {
XMLData: function (game, xml, cacheKey) {

// Malformed?
if (!xml.getElementsByTagName('TextureAtlas'))
Expand Down

0 comments on commit e5078a2

Please sign in to comment.