From 9f67f327015b0ef7cf9cef7aa2cd64e34247f40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 5 Mar 2011 20:58:46 +0000 Subject: [PATCH] Allow chaining of Point setters. --- src/basic/Point.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/basic/Point.js b/src/basic/Point.js index 9887c183..a723c94d 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -36,6 +36,7 @@ var Point = this.Point = Base.extend({ set: function(x, y) { this.x = x; this.y = y; + return this; }, /** @@ -157,6 +158,7 @@ var Point = this.Point = Base.extend({ this.x *= scale; this.y *= scale; } + return this; }, normalize: function(length) { @@ -237,6 +239,7 @@ var Point = this.Point = Base.extend({ this.x = Math.cos(angle) * length; this.y = Math.sin(angle) * length; } + return this; }, /**