mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix comparing of PlacedSymbols in compareItems test helper.
This commit is contained in:
parent
a2e3759fb8
commit
4719c05403
1 changed files with 9 additions and 3 deletions
|
@ -311,9 +311,15 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) {
|
|||
|
||||
// PlacedSymbol specific
|
||||
if (item instanceof PlacedSymbol) {
|
||||
equals(function() {
|
||||
return item.symbol == item2.symbol;
|
||||
}, true);
|
||||
if (dontShareProject) {
|
||||
compareItems(item.symbol.definition, item.symbol2.definition,
|
||||
cloned, checkIdentity, dontShareProject,
|
||||
'Compare Symbol#definition');
|
||||
} else {
|
||||
equals(function() {
|
||||
return item.symbol == item2.symbol;
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Raster specific
|
||||
|
|
Loading…
Reference in a new issue