Skip to content

Commit 4deb8e4

Browse files
committed
eslint fixes
1 parent c2782d8 commit 4deb8e4

4 files changed

Lines changed: 4 additions & 10 deletions

File tree

src/gameobjects/components/Crop.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7-
// bitmask flag for GameObject.renderMask
8-
var _FLAG = 8; // 1000
9-
107
/**
118
* Provides methods used for getting and setting the texture of a Game Object.
129
*

src/gameobjects/particles/Particle.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ var Class = require('../../utils/Class');
88
var DegToRad = require('../../math/DegToRad');
99
var DistanceBetween = require('../../math/distance/DistanceBetween');
1010

11-
var GetColor = function (value)
12-
{
13-
return (value >> 16) + (value & 0xff00) + ((value & 0xff) << 16);
14-
};
15-
1611
/**
1712
* @classdesc
1813
* A Particle is a simple Game Object controlled by a Particle Emitter and Manager, and rendered by the Manager.

src/tilemaps/staticlayer/StaticTilemapLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ var StaticTilemapLayer = new Class({
11961196
this.cullCallback = null;
11971197

11981198
GameObject.prototype.destroy.call(this);
1199-
},
1199+
}
12001200

12011201
});
12021202

src/utils/string/UUID.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ var UUID = function ()
1919
{
2020
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c)
2121
{
22-
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
22+
var r = Math.random() * 16 | 0;
23+
var v = (c === 'x') ? r : (r & 0x3 | 0x8);
24+
2325
return v.toString(16);
2426
});
2527
};

0 commit comments

Comments
 (0)