jshint fixes and tidying up for release

This commit is contained in:
photonstorm 2014-07-10 16:21:50 +01:00
parent 25e7e6ffc4
commit 0966971427
3 changed files with 1 additions and 15 deletions

View file

@ -481,11 +481,6 @@ Object.defineProperty(Phaser.AnimationManager.prototype, 'frame', {
set: function (value) {
console.log('AnimationManager.frame');
console.log(typeof value);
console.log(this._frameData);
// console.log(this._frameData.getFrame(value));
if (typeof value === 'number' && this._frameData && this._frameData.getFrame(value) !== null)
{
this.currentFrame = this._frameData.getFrame(value);

View file

@ -563,7 +563,7 @@ Phaser.Sprite.prototype.updateCrop = function() {
PIXI.WebGLRenderer.updateTextureFrame(this.texture);
}
}
};
/**
* Brings a 'dead' Sprite back to life, optionally giving it the health value specified.

View file

@ -380,15 +380,6 @@ Phaser.TileSprite.prototype.loadTexture = function (key, frame) {
*/
Phaser.TileSprite.prototype.setFrame = function(frame) {
// this._cache[9] = frame.x;
// this._cache[10] = frame.y;
// this._cache[11] = frame.width;
// this._cache[12] = frame.height;
// this._cache[13] = frame.spriteSourceSizeX;
// this._cache[14] = frame.spriteSourceSizeY;
// this._cache[17] = frame.sourceSizeW;
// this._cache[18] = frame.sourceSizeH;
this.texture.frame.x = frame.x;
this.texture.frame.y = frame.y;
this.texture.frame.width = frame.width;