mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-25 13:19:09 -04: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,10 +311,16 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) {
|
|||
|
||||
// PlacedSymbol specific
|
||||
if (item instanceof PlacedSymbol) {
|
||||
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
|
||||
if (item instanceof Raster) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue