black list for clone function. fix #583

This commit is contained in:
Лаврёнов Антон
2014-03-02 21:51:35 +08:00
parent 53ac9329de
commit e5db9115a0
2 changed files with 13 additions and 3 deletions

View File

@@ -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');
/*