Skip to content

Commit 83ef740

Browse files
committed
Return this
1 parent 31b2504 commit 83ef740

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugins/spine/src/gameobject/SpineGameObject.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ var SpineGameObject = new Class({
512512
play: function (animationName, loop)
513513
{
514514
if (loop === undefined) { loop = false; }
515-
0
515+
516516
return this.setAnimation(0, animationName, loop);
517517
},
518518

@@ -528,7 +528,9 @@ var SpineGameObject = new Class({
528528

529529
addAnimation: function (trackIndex, animationName, loop, delay)
530530
{
531-
return this.state.addAnimation(trackIndex, animationName, loop, delay);
531+
this.state.addAnimation(trackIndex, animationName, loop, delay);
532+
533+
return this;
532534
},
533535

534536
setEmptyAnimation: function (trackIndex, mixDuration)

0 commit comments

Comments
 (0)