From d6a49e2eb4bad4a573a6d5568313d91823e8052c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 20 May 2011 08:28:49 +0100 Subject: [PATCH] No need to check result of Point.read(), as it will always be a Point (_readNull is only defined for Color). --- src/text/PointText.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/text/PointText.js b/src/text/PointText.js index d2cd76a0..29c2ea29 100644 --- a/src/text/PointText.js +++ b/src/text/PointText.js @@ -34,11 +34,9 @@ var PointText = this.PointText = TextItem.extend({ setPoint: function(point) { point = Point.read(arguments); - if (point) { - var delta = point.subtract(this._point); - this.matrix.preConcatenate(new Matrix().translate(delta)); - this._point = point; - } + var delta = point.subtract(this._point); + this.matrix.preConcatenate(new Matrix().translate(delta)); + this._point = point; }, // TODO: position should be the center point of the bounds