Skip to content

Commit 4d16b0c

Browse files
committed
eslint fixes
1 parent ef3df14 commit 4d16b0c

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/gameobjects/rendertexture/RenderTextureCreator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var BuildGameObject = require('../BuildGameObject');
2-
var BuildGameObjectAnimation = require('../BuildGameObjectAnimation');
32
var GameObjectCreator = require('../GameObjectCreator');
43
var GetAdvancedValue = require('../../utils/object/GetAdvancedValue');
54
var RenderTexture = require('./RenderTexture');

src/gameobjects/tilesprite/TileSprite.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,15 @@ var TileSprite = new Class({
196196
*/
197197
updateTileTexture: function ()
198198
{
199-
if (!this.dirty && this.oldFrame == this.frame)
199+
if (!this.dirty && this.oldFrame === this.frame)
200200
{
201201
return;
202202
}
203203

204204
this.oldFrame = this.frame;
205205

206206
this.canvasBufferCtx.clearRect(0, 0, this.canvasBuffer.width, this.canvasBuffer.height);
207+
207208
this.canvasBufferCtx.drawImage(
208209
this.frame.source.image,
209210
this.frame.cutX, this.frame.cutY,

src/input/InputPlugin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ var InputPlugin = new Class({
529529
}
530530

531531
var i;
532-
var c;
533532
var gameObject;
534533
var list;
535534
var input;

src/renderer/webgl/WebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ var WebGLRenderer = new Class({
14751475
*
14761476
* @return {WebGLTexture} [description]
14771477
*/
1478-
canvasToTexture: function (srcCanvas, dstTexture, shouldReallocate)
1478+
canvasToTexture: function (srcCanvas, dstTexture)
14791479
{
14801480
var gl = this.gl;
14811481

0 commit comments

Comments
 (0)