From 458a67251dfa37e00f3d0c5943f52d4c9239dc94 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 9 Jun 2016 15:09:20 +0100 Subject: [PATCH] Fixed input property check. --- src/core/Group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Group.js b/src/core/Group.js index 754ca6af3..06f899c03 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -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; }