From 8db23545da46d12da667e9cc993ca13207dc3c7c Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 10 Sep 2015 15:57:55 +0100 Subject: [PATCH] jsdoc updates. --- src/core/Group.js | 1 + src/gameobjects/components/Core.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/core/Group.js b/src/core/Group.js index 8d095da2f..cd3c238ee 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -52,6 +52,7 @@ Phaser.Group = function (game, parent, name, addToStage, enableBody, physicsBody * The z-depth value of this object within its parent container/Group - the World is a Group as well. * This value must be unique for each child in a Group. * @property {integer} z + * @readOnly */ this.z = 0; diff --git a/src/gameobjects/components/Core.js b/src/gameobjects/components/Core.js index f35b2382a..7f2b3a673 100644 --- a/src/gameobjects/components/Core.js +++ b/src/gameobjects/components/Core.js @@ -163,7 +163,9 @@ Phaser.Component.Core.prototype = { * The z depth of this Game Object within its parent Group. * No two objects in a Group can have the same z value. * This value is adjusted automatically whenever the Group hierarchy changes. + * If you wish to re-order the layering of a Game Object then see methods like Group.moveUp or Group.bringToTop. * @property {number} z + * @readOnly */ z: 0,