Use === instead of ==.

This commit is contained in:
Jürg Lehni 2013-03-07 09:35:16 -08:00
parent 5172b77ab3
commit 780e842d74

View file

@ -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);