From da7b32a18eb2e111fad8b5cbd5432069eb7bcb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 9 Apr 2013 08:36:17 -0700 Subject: [PATCH] Clean up code references to GradientColor. --- src/color/GradientStop.js | 2 +- src/svg/SvgImport.js | 4 ++-- test/tests/Item_Cloning.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/color/GradientStop.js b/src/color/GradientStop.js index 91aa1dd9..5e8362af 100644 --- a/src/color/GradientStop.js +++ b/src/color/GradientStop.js @@ -47,7 +47,7 @@ var GradientStop = this.GradientStop = Base.extend(/** @lends GradientStop# */{ // TODO: Do we really need to also clone the color here? /** - * @return {GradientColor} a copy of the gradient-stop + * @return {GradientStop} a copy of the gradient-stop */ clone: function() { return new GradientStop(this._color.clone(), this._rampPoint); diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index fa90d84f..51ae0ce8 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -153,10 +153,10 @@ new function() { origin = getPoint(node, 'x1', 'y1'); destination = getPoint(node, 'x2', 'y2'); } - // We don't return the GradientColor, since we only need a reference to - // it in definitions, which is created in applyAttributes() applyAttributes( new Color(gradient, origin, destination, highlight), node); + // We don't return the gradient, since we only need a reference to it in + // definitions, which is created in applyAttributes() return null; } diff --git a/test/tests/Item_Cloning.js b/test/tests/Item_Cloning.js index 3ca3218c..09eabe32 100644 --- a/test/tests/Item_Cloning.js +++ b/test/tests/Item_Cloning.js @@ -51,7 +51,7 @@ test('Path#clone()', function() { cloneAndCompare(path); }); -test('Path#clone() with GradientColor', function() { +test('Path#clone() with gradient Color', function() { var colors = ['red', 'green', 'black']; var gradient = new Gradient(colors, true); var color = new Color(gradient, [0, 0], [20, 20], [10, 10]);