Skip to content

Commit b6480a0

Browse files
committed
Fix animationcomplete event name typo
1 parent 14a651e commit b6480a0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/gameobjects/components/Animation.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ var Class = require('../../utils/Class');
88

99
/**
1010
* This event is dispatched when an animation starts playing.
11-
*
11+
*
1212
* @event Phaser.GameObjects.Components.Animation#onStartEvent
1313
* @param {Phaser.Animations.Animation} animation - Reference to the currently playing animation.
1414
* @param {Phaser.Animations.AnimationFrame} frame - Reference to the current Animation Frame.
1515
*/
1616

1717
/**
1818
* This event is dispatched when an animation repeats.
19-
*
19+
*
2020
* @event Phaser.GameObjects.Components.Animation#onRepeatEvent
2121
* @param {Phaser.Animations.Animation} animation - Reference to the currently playing animation.
2222
* @param {Phaser.Animations.AnimationFrame} frame - Reference to the current Animation Frame.
@@ -26,15 +26,15 @@ var Class = require('../../utils/Class');
2626
/**
2727
* This event is dispatched when an animation updates. This happens when the animation frame changes,
2828
* based on the animation frame rate and other factors like timeScale and delay.
29-
*
29+
*
3030
* @event Phaser.GameObjects.Components.Animation#onUpdateEvent
3131
* @param {Phaser.Animations.Animation} animation - Reference to the currently playing animation.
3232
* @param {Phaser.Animations.AnimationFrame} frame - Reference to the current Animation Frame.
3333
*/
3434

3535
/**
3636
* This event is dispatched when an animation completes playing, either naturally or via Animation.stop.
37-
*
37+
*
3838
* @event Phaser.GameObjects.Components.Animation#onCompleteEvent
3939
* @param {Phaser.Animations.Animation} animation - Reference to the currently playing animation.
4040
* @param {Phaser.Animations.AnimationFrame} frame - Reference to the current Animation Frame.
@@ -281,7 +281,7 @@ var Animation = new Class({
281281

282282
/**
283283
* Internal property tracking if this Animation is waiting to stop.
284-
*
284+
*
285285
* 0 = No
286286
* 1 = Waiting for ms to pass
287287
* 2 = Waiting for repeat
@@ -625,7 +625,7 @@ var Animation = new Class({
625625

626626
/**
627627
* Gets the amount of delay between repeats, if any.
628-
*
628+
*
629629
* @method Phaser.GameObjects.Components.Animation#getRepeatDelay
630630
* @since 3.4.0
631631
*
@@ -700,7 +700,7 @@ var Animation = new Class({
700700

701701
var gameObject = this.parent;
702702

703-
gameObject.emit('animtioncomplete', this.currentAnim, this.currentFrame);
703+
gameObject.emit('animationcomplete', this.currentAnim, this.currentFrame);
704704

705705
return gameObject;
706706
},
@@ -830,7 +830,7 @@ var Animation = new Class({
830830
return this.currentAnim.completeAnimation(this);
831831
}
832832
}
833-
833+
834834
if (this.accumulator >= this.nextTick)
835835
{
836836
this.currentAnim.setFrame(this);

0 commit comments

Comments
 (0)