mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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
|
// PlacedSymbol specific
|
||||||
if (item instanceof PlacedSymbol) {
|
if (item instanceof PlacedSymbol) {
|
||||||
equals(function() {
|
if (dontShareProject) {
|
||||||
return item.symbol == item2.symbol;
|
compareItems(item.symbol.definition, item.symbol2.definition,
|
||||||
}, true);
|
cloned, checkIdentity, dontShareProject,
|
||||||
|
'Compare Symbol#definition');
|
||||||
|
} else {
|
||||||
|
equals(function() {
|
||||||
|
return item.symbol == item2.symbol;
|
||||||
|
}, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Raster specific
|
// Raster specific
|
||||||
|
|
Loading…
Reference in a new issue