Merge pull request #910 from TatumCreative/dev

Fix null returns for play()
This commit is contained in:
Richard Davey 2014-07-01 15:39:17 +01:00
commit ba29d5bd4b
2 changed files with 6 additions and 2 deletions

View file

@ -227,6 +227,7 @@ Phaser.AnimationManager.prototype = {
this.currentAnim.paused = false;
return this.currentAnim.play(frameRate, loop, killOnComplete);
}
return this.currentAnim;
}
else
{

View file

@ -993,8 +993,11 @@ Phaser.Physics.P2.Body.prototype = {
*/
removeShape: function (shape) {
return this.data.removeShape(shape);
var result = this.data.removeShape(shape);
this.shapeChanged();
return result;
},
/**