mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 09:27:37 +00:00
jshint fixes
This commit is contained in:
parent
bf4c1d0620
commit
166c0363fc
3 changed files with 3 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue