mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Use === instead of ==.
This commit is contained in:
parent
5172b77ab3
commit
780e842d74
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue