mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -05:00
compareItems helper: make color comparison strict.
This commit is contained in:
parent
ce586bd07e
commit
da28757111
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ function compareItems(item, item2) {
|
|||
|
||||
Base.each(['fillColor', 'strokeColor'], function(key) {
|
||||
if (item[key]) {
|
||||
// The fillColor should not point to the same color object:
|
||||
// The color should not point to the same color object:
|
||||
equals(function() {
|
||||
return item[key] != item2[key];
|
||||
return item[key] !== item2[key];
|
||||
}, true, 'The ' + key + ' should not point to the same color object:');
|
||||
if (item[key] instanceof GradientColor) {
|
||||
equals(function() {
|
||||
|
|
Loading…
Reference in a new issue