mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Also compare Item#data in compareItems test helper.
This commit is contained in:
parent
1732c2cbb2
commit
a535c106a8
1 changed files with 4 additions and 0 deletions
|
@ -268,6 +268,10 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) {
|
|||
equals(item.position.toString(), item2.position.toString(),
|
||||
'Compare Item#position');
|
||||
|
||||
equals(function() {
|
||||
return Base.equals(item.data, item2.data)
|
||||
}, true);
|
||||
|
||||
if (item.matrix) {
|
||||
if (checkIdentity) {
|
||||
equals(function() {
|
||||
|
|
Loading…
Reference in a new issue