eslint fixes

This commit is contained in:
Richard Davey 2018-03-05 01:45:28 +00:00
parent ef3df149c6
commit 4d16b0c00a
4 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,4 @@
var BuildGameObject = require('../BuildGameObject');
var BuildGameObjectAnimation = require('../BuildGameObjectAnimation');
var GameObjectCreator = require('../GameObjectCreator');
var GetAdvancedValue = require('../../utils/object/GetAdvancedValue');
var RenderTexture = require('./RenderTexture');

View file

@ -196,7 +196,7 @@ var TileSprite = new Class({
*/
updateTileTexture: function ()
{
if (!this.dirty && this.oldFrame == this.frame)
if (!this.dirty && this.oldFrame === this.frame)
{
return;
}
@ -204,6 +204,7 @@ var TileSprite = new Class({
this.oldFrame = this.frame;
this.canvasBufferCtx.clearRect(0, 0, this.canvasBuffer.width, this.canvasBuffer.height);
this.canvasBufferCtx.drawImage(
this.frame.source.image,
this.frame.cutX, this.frame.cutY,

View file

@ -529,7 +529,6 @@ var InputPlugin = new Class({
}
var i;
var c;
var gameObject;
var list;
var input;

View file

@ -1475,7 +1475,7 @@ var WebGLRenderer = new Class({
*
* @return {WebGLTexture} [description]
*/
canvasToTexture: function (srcCanvas, dstTexture, shouldReallocate)
canvasToTexture: function (srcCanvas, dstTexture)
{
var gl = this.gl;