From 251b819bdb2ee260425526d277ee8ddcfd53ac37 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Fri, 21 Feb 2014 10:06:53 +0000 Subject: [PATCH] Fixed InputHandler group check #463 --- src/input/InputHandler.js | 2 +- src/tilemap/TilemapParser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/InputHandler.js b/src/input/InputHandler.js index a42ca770..210f34c2 100644 --- a/src/input/InputHandler.js +++ b/src/input/InputHandler.js @@ -628,7 +628,7 @@ Phaser.InputHandler.prototype = { return; } - if (this.enabled === false || this.sprite.visible === false || (this.sprite.group && this.sprite.group.visible === false)) + if (!this.enabled || !this.sprite.visible || !this.sprite.parent.visible) { this._pointerOutHandler(pointer); return false; diff --git a/src/tilemap/TilemapParser.js b/src/tilemap/TilemapParser.js index e325cf8c..f3691eb0 100644 --- a/src/tilemap/TilemapParser.js +++ b/src/tilemap/TilemapParser.js @@ -66,7 +66,7 @@ Phaser.TilemapParser = { }, /** - * Parse tileset data from the cache and creates a Tileset object. + * Parse tilemap data from the cache and creates a Tilemap object. * @method Phaser.TilemapParser.parse * @param {Phaser.Game} game - Game reference to the currently running game. * @param {string} key - The key of the tilemap in the Cache.