Merge pull request #12 from CharlotteGore/patch-1

Update DisplayObject.js
This commit is contained in:
Mat Groves 2013-03-18 04:56:20 -07:00
commit 9a0cd873b5

View file

@ -84,7 +84,7 @@ PIXI.DisplayObject.prototype.updateTransform = function()
// TODO OPTIMIZE THIS!! with dirty
if(this.rotation != this.rotationCache)
{
this.rotationCach = this.rotation;
this.rotationCache = this.rotation;
this._sr = Math.sin(this.rotation);
this._cr = Math.cos(this.rotation);
}
@ -103,4 +103,4 @@ PIXI.DisplayObject.prototype.updateTransform = function()
// TODO optimize?
mat3.multiply(this.localTransform, this.parent.worldTransform, this.worldTransform);
this.worldAlpha = this.alpha * this.parent.worldAlpha;
}
}