{"action":"closed","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/2620","repository_url":"https://api.github.com/repos/photonstorm/phaser","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/2620/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/2620/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/2620/events","html_url":"https://github.com/photonstorm/phaser/issues/2620","id":165083250,"number":2620,"title":"Phaser.Stage has no parent.","user":{"login":"Arcanorum","id":9785268,"avatar_url":"https://avatars.githubusercontent.com/u/9785268?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcanorum","html_url":"https://github.com/Arcanorum","followers_url":"https://api.github.com/users/Arcanorum/followers","following_url":"https://api.github.com/users/Arcanorum/following{/other_user}","gists_url":"https://api.github.com/users/Arcanorum/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcanorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcanorum/subscriptions","organizations_url":"https://api.github.com/users/Arcanorum/orgs","repos_url":"https://api.github.com/users/Arcanorum/repos","events_url":"https://api.github.com/users/Arcanorum/events{/privacy}","received_events_url":"https://api.github.com/users/Arcanorum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/photonstorm/phaser/labels/code%20example%20needed","name":"code example needed","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T13:41:31Z","updated_at":"2016-09-27T01:09:17Z","closed_at":"2016-09-27T01:09:17Z","body":"So I was about to do some debugging using https://github.com/englercj/phaser-debug and got an error when trying to inspect the Scene Tree.\r\n\r\n> Uncaught TypeError: Cannot read property 'visible' of null\r\n\r\nWhich I traced back to this code.\r\n```\r\n/**\r\n    * Indicates if this DisplayObject is visible, based on it, and all of its parents, `visible` property values.\r\n    * @name PIXI.DisplayObject#worldVisible\r\n    * @property {boolean} worldVisible - Indicates if this DisplayObject is visible, based on it, and all of its parents, `visible` property values.\r\n    */\r\n    'worldVisible': {\r\n\r\n        get: function () {\r\n\r\n            if (!this.visible)\r\n            {\r\n                return false;\r\n            }\r\n            else\r\n            {\r\n                var item = this.parent; // <---- Error line. No parent exists on 'this' when 'this' is the stage.\r\n\r\n                do\r\n                {\r\n                    if (!item.visible)\r\n                    {\r\n                        return false;\r\n                    }\r\n\r\n                    item = item.parent;\r\n                }\r\n                while (item);\r\n\r\n                return true;\r\n            }\r\n\r\n        }\r\n\r\n    },\r\n```\r\n\r\nI'm using 2.6.1. According to the docs, as of 2.6.0 Phaser.Stage no longer has a parent property."}}
{"actor":{"display_login":"photonstorm"}}