Skip to content

Commit 640dc69

Browse files
committed
play returns the Sprite reference for proper chaining
1 parent e206885 commit 640dc69

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'b28c18c0-7cff-11e7-b7e1-779245c06136'
2+
build: '0650ab60-7d82-11e7-bb3f-5dcfe50b42c0'
33
};
44
module.exports = CHECKSUM;

v3/src/gameobjects/sprite/Sprite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ var Sprite = new Class({
4646

4747
play: function (key, startFrame)
4848
{
49-
return this.anims.play(key, startFrame);
49+
this.anims.play(key, startFrame);
50+
51+
return this;
5052
},
5153

5254
toJSON: function ()

0 commit comments

Comments
 (0)