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:
parent
2e0b26d765
commit
2ee1f778b3
1 changed files with 1 additions and 1 deletions
|
@ -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 ) ;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue