compareItems helper: make color comparison strict.

This commit is contained in:
Jonathan Puckey 2011-05-21 14:07:29 +02:00
parent ce586bd07e
commit da28757111

View file

@ -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() {