Skip to content

Commit 166c036

Browse files
committed
jshint fixes
1 parent bf4c1d0 commit 166c036

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/gameobjects/components/BringToTop.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ Phaser.Component.BringToTop.prototype.sendToBack = function() {
3434
* Moves the given child up one place in this group unless it's already at the top.
3535
*
3636
* @method Phaser.Group#moveUp
37-
* @param {any} child - The child to move up in the group.
3837
* @return {any} The child that was moved.
3938
*/
40-
Phaser.Component.BringToTop.prototype.moveUp = function (child) {
39+
Phaser.Component.BringToTop.prototype.moveUp = function () {
4140

4241
if (this.parent)
4342
{
@@ -52,10 +51,9 @@ Phaser.Component.BringToTop.prototype.moveUp = function (child) {
5251
* Moves the given child down one place in this group unless it's already at the bottom.
5352
*
5453
* @method Phaser.Group#moveDown
55-
* @param {any} child - The child to move down in the group.
5654
* @return {any} The child that was moved.
5755
*/
58-
Phaser.Component.BringToTop.prototype.moveDown = function (child) {
56+
Phaser.Component.BringToTop.prototype.moveDown = function () {
5957

6058
if (this.parent)
6159
{

src/gameobjects/components/Core.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Phaser.Component.Core.preUpdate = function () {
7373
this.body.preUpdate();
7474
}
7575

76-
// Update any Children
7776
for (var i = 0; i < this.children.length; i++)
7877
{
7978
this.children[i].preUpdate();
@@ -195,7 +194,6 @@ Phaser.Component.Core.prototype = {
195194
Phaser.Component.FixedToCamera.postUpdate.call(this);
196195
}
197196

198-
// Update any Children
199197
for (var i = 0; i < this.children.length; i++)
200198
{
201199
this.children[i].postUpdate();

src/gameobjects/components/FixedToCamera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ Phaser.Component.FixedToCamera.prototype = {
2323
/**
2424
* @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.
2525
*/
26-
cameraOffset: new Phaser.Point(),
26+
cameraOffset: new Phaser.Point()
2727

2828
};

0 commit comments

Comments
 (0)