diff --git a/src/gameobjects/components/BringToTop.js b/src/gameobjects/components/BringToTop.js index 7230c65ad..5bc4ba0cc 100644 --- a/src/gameobjects/components/BringToTop.js +++ b/src/gameobjects/components/BringToTop.js @@ -34,10 +34,9 @@ Phaser.Component.BringToTop.prototype.sendToBack = function() { * Moves the given child up one place in this group unless it's already at the top. * * @method Phaser.Group#moveUp -* @param {any} child - The child to move up in the group. * @return {any} The child that was moved. */ -Phaser.Component.BringToTop.prototype.moveUp = function (child) { +Phaser.Component.BringToTop.prototype.moveUp = function () { if (this.parent) { @@ -52,10 +51,9 @@ Phaser.Component.BringToTop.prototype.moveUp = function (child) { * Moves the given child down one place in this group unless it's already at the bottom. * * @method Phaser.Group#moveDown -* @param {any} child - The child to move down in the group. * @return {any} The child that was moved. */ -Phaser.Component.BringToTop.prototype.moveDown = function (child) { +Phaser.Component.BringToTop.prototype.moveDown = function () { if (this.parent) { diff --git a/src/gameobjects/components/Core.js b/src/gameobjects/components/Core.js index 4d4b6bf19..9740bba2b 100644 --- a/src/gameobjects/components/Core.js +++ b/src/gameobjects/components/Core.js @@ -73,7 +73,6 @@ Phaser.Component.Core.preUpdate = function () { this.body.preUpdate(); } - // Update any Children for (var i = 0; i < this.children.length; i++) { this.children[i].preUpdate(); @@ -195,7 +194,6 @@ Phaser.Component.Core.prototype = { Phaser.Component.FixedToCamera.postUpdate.call(this); } - // Update any Children for (var i = 0; i < this.children.length; i++) { this.children[i].postUpdate(); diff --git a/src/gameobjects/components/FixedToCamera.js b/src/gameobjects/components/FixedToCamera.js index 2a78a31b3..af32c23cf 100644 --- a/src/gameobjects/components/FixedToCamera.js +++ b/src/gameobjects/components/FixedToCamera.js @@ -23,6 +23,6 @@ Phaser.Component.FixedToCamera.prototype = { /** * @property {Phaser.Point} cameraOffset - If this object is fixedToCamera then this stores the x/y offset that it is drawn at. Values are relative to the top-left of the camera view. */ - cameraOffset: new Phaser.Point(), + cameraOffset: new Phaser.Point() };