diff --git a/src/animation/AnimationParser.js b/src/animation/AnimationParser.js index e6ff8100ce..251078d215 100644 --- a/src/animation/AnimationParser.js +++ b/src/animation/AnimationParser.js @@ -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']) @@ -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']) @@ -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'))