Fixed issue with set Point

no if only one param is passed x and y are both set to it
This commit is contained in:
Mat Groves 2014-01-16 17:31:27 +00:00
parent 2e0b26d765
commit 2ee1f778b3

View file

@ -44,6 +44,6 @@ PIXI.Point.prototype.constructor = PIXI.Point;
PIXI.Point.prototype.set = function(x, y)
{
this.x = x || 0;
this.y = y || (y !== 0) ? x : 0 ;
this.y = y || ( (y !== 0) ? x : 0 ) ;
};