Setters already handle point conversion.

This commit is contained in:
Jonathan Puckey 2011-02-19 22:52:00 +01:00
parent 10623ddb62
commit c0a93a8b66

View file

@ -3,10 +3,10 @@ GradientColor = Color.extend({
initialize: function(gradient, origin, destination, hilite) { initialize: function(gradient, origin, destination, hilite) {
this.gradient = gradient || new Gradient(); this.gradient = gradient || new Gradient();
this.origin = new Point(origin); this.origin = origin;
this.destination = new Point(destination); this.destination = destination;
if(hilite) if(hilite)
this.hilite = new Point(hilite); this.hilite = hilite;
}, },
getOrigin: function() { getOrigin: function() {