From 2ee1f778b3def8f7791ff69976d7adb8396c67ea Mon Sep 17 00:00:00 2001 From: Mat Groves Date: Thu, 16 Jan 2014 17:31:27 +0000 Subject: [PATCH] Fixed issue with set Point no if only one param is passed x and y are both set to it --- src/pixi/core/Point.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixi/core/Point.js b/src/pixi/core/Point.js index e0c74af..8d6a001 100644 --- a/src/pixi/core/Point.js +++ b/src/pixi/core/Point.js @@ -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 ) ; };