mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fixed input property check.
This commit is contained in:
parent
90e1460320
commit
458a67251d
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ Phaser.Group.prototype.add = function (child, silent, index) {
|
|||
this.updateZ();
|
||||
}
|
||||
|
||||
if (this.enableBody && child.hasProperty('body') && child.body === null)
|
||||
if (this.enableBody && child.hasOwnProperty('body') && child.body === null)
|
||||
{
|
||||
this.game.physics.enable(child, this.physicsBodyType);
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ Phaser.Group.prototype.add = function (child, silent, index) {
|
|||
this.addToHash(child);
|
||||
}
|
||||
|
||||
if (this.inputEnableChildren && child.hasProperty('input') && !child.inputEnabled)
|
||||
if (this.inputEnableChildren && !child.inputEnabled)
|
||||
{
|
||||
child.inputEnabled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue