mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
allow cloning id
This commit is contained in:
@@ -560,7 +560,7 @@ suite('Node', function() {
|
||||
assert.equal(rect.getShadowColor(), 'black');
|
||||
assert.equal(clone.getShadowColor(), 'black');
|
||||
|
||||
assert.equal(clone.id() == '', true, 'do not clone id');
|
||||
assert.equal(clone.id() === 'myRect', true, 'clone id');
|
||||
|
||||
clone.setShadowColor('green');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user