mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
eslint fixes
This commit is contained in:
parent
ef3df149c6
commit
4d16b0c00a
4 changed files with 3 additions and 4 deletions
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -529,7 +529,6 @@ var InputPlugin = new Class({
|
|||
}
|
||||
|
||||
var i;
|
||||
var c;
|
||||
var gameObject;
|
||||
var list;
|
||||
var input;
|
||||
|
|
|
@ -1475,7 +1475,7 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @return {WebGLTexture} [description]
|
||||
*/
|
||||
canvasToTexture: function (srcCanvas, dstTexture, shouldReallocate)
|
||||
canvasToTexture: function (srcCanvas, dstTexture)
|
||||
{
|
||||
var gl = this.gl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue