Skip to content

Commit 0966971

Browse files
committed
jshint fixes and tidying up for release
1 parent 25e7e6f commit 0966971

3 files changed

Lines changed: 1 addition & 15 deletions

File tree

src/animation/AnimationManager.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,6 @@ Object.defineProperty(Phaser.AnimationManager.prototype, 'frame', {
481481

482482
set: function (value) {
483483

484-
console.log('AnimationManager.frame');
485-
console.log(typeof value);
486-
console.log(this._frameData);
487-
// console.log(this._frameData.getFrame(value));
488-
489484
if (typeof value === 'number' && this._frameData && this._frameData.getFrame(value) !== null)
490485
{
491486
this.currentFrame = this._frameData.getFrame(value);

src/gameobjects/Sprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ Phaser.Sprite.prototype.updateCrop = function() {
563563
PIXI.WebGLRenderer.updateTextureFrame(this.texture);
564564
}
565565

566-
}
566+
};
567567

568568
/**
569569
* Brings a 'dead' Sprite back to life, optionally giving it the health value specified.

src/gameobjects/TileSprite.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,6 @@ Phaser.TileSprite.prototype.loadTexture = function (key, frame) {
380380
*/
381381
Phaser.TileSprite.prototype.setFrame = function(frame) {
382382

383-
// this._cache[9] = frame.x;
384-
// this._cache[10] = frame.y;
385-
// this._cache[11] = frame.width;
386-
// this._cache[12] = frame.height;
387-
// this._cache[13] = frame.spriteSourceSizeX;
388-
// this._cache[14] = frame.spriteSourceSizeY;
389-
// this._cache[17] = frame.sourceSizeW;
390-
// this._cache[18] = frame.sourceSizeH;
391-
392383
this.texture.frame.x = frame.x;
393384
this.texture.frame.y = frame.y;
394385
this.texture.frame.width = frame.width;

0 commit comments

Comments
 (0)