Skip to content

Commit ddf2f74

Browse files
committed
Update JSDoc on Animation
1 parent 87d6cda commit ddf2f74

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/animations/Animation.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ var GetValue = require('../utils/object/GetValue');
1111
/**
1212
* @classdesc
1313
* A Frame based Animation.
14-
*
14+
*
1515
* This consists of a key, some default values (like the frame rate) and a bunch of Frame objects.
16-
*
16+
*
1717
* The Animation Manager creates these. Game Objects don't own an instance of these directly.
1818
* Game Objects have the Animation Component, which are like playheads to global Animations (these objects)
1919
* So multiple Game Objects can have playheads all pointing to this one Animation instance.
@@ -303,7 +303,7 @@ var Animation = new Class({
303303
* @method Phaser.Animations.Animation#addFrame
304304
* @since 3.0.0
305305
*
306-
* @param {[type]} config - [description]
306+
* @param {string|object[]} config - [description]
307307
*
308308
* @return {Phaser.Animations.Animation} This Animation object.
309309
*/
@@ -326,7 +326,7 @@ var Animation = new Class({
326326
* @since 3.0.0
327327
*
328328
* @param {integer} index - [description]
329-
* @param {[type]} config - [description]
329+
* @param {string|object[]} config - [description]
330330
*
331331
* @return {Phaser.Animations.Animation} This Animation object.
332332
*/
@@ -436,7 +436,8 @@ var Animation = new Class({
436436
* @since 3.0.0
437437
*
438438
* @param {Phaser.Textures.TextureManager} textureManager - [description]
439-
* @param {[type]} frames - [description]
439+
* @param {string|object[]} frames - [description]
440+
* @param {string} [defaultTextureKey] - [description]
440441
*
441442
* @return {Phaser.Animations.AnimationFrame[]} [description]
442443
*/

0 commit comments

Comments
 (0)