From 780e842d74b815981dfdb42a0e78d421cf51c1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 7 Mar 2013 09:35:16 -0800 Subject: [PATCH] Use === instead of ==. --- src/color/GradientColor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);