diff --git a/src/color/GradientColor.js b/src/color/GradientColor.js index 494e22dc..3b84132f 100644 --- a/src/color/GradientColor.js +++ b/src/color/GradientColor.js @@ -278,7 +278,7 @@ var GradientColor = this.GradientColor = Color.extend(/** @lends GradientColor# * @return {@true the GradientColor is the same} */ equals: function(color) { - return color == this || color && color._type === this._type + return color === this || color && color._type === this._type && this._gradient.equals(color._gradient) && this._origin.equals(color._origin) && this._destination.equals(color._destination);