From c0a93a8b668c93d0f5241128491b3b778d84999b Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 19 Feb 2011 22:52:00 +0100 Subject: [PATCH] Setters already handle point conversion. --- src/color/GradientColor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/color/GradientColor.js b/src/color/GradientColor.js index af9be7b4..7ccac410 100644 --- a/src/color/GradientColor.js +++ b/src/color/GradientColor.js @@ -3,10 +3,10 @@ GradientColor = Color.extend({ initialize: function(gradient, origin, destination, hilite) { this.gradient = gradient || new Gradient(); - this.origin = new Point(origin); - this.destination = new Point(destination); + this.origin = origin; + this.destination = destination; if(hilite) - this.hilite = new Point(hilite); + this.hilite = hilite; }, getOrigin: function() {