mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
black list for clone function. fix #583
This commit is contained in:
@@ -416,7 +416,8 @@ suite('Node', function() {
|
||||
shadowOffsetX: 20,
|
||||
shadowOffsetY: 20,
|
||||
draggable: true,
|
||||
name: 'myRect'
|
||||
name: 'myRect',
|
||||
id : 'myRect'
|
||||
});
|
||||
|
||||
var clicks = [];
|
||||
@@ -439,6 +440,8 @@ suite('Node', function() {
|
||||
assert.equal(rect.getShadowColor(), 'black');
|
||||
assert.equal(clone.getShadowColor(), 'black');
|
||||
|
||||
assert.equal(clone.id() == undefined, true, 'do not clone id');
|
||||
|
||||
clone.setShadowColor('green');
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user