mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
removeChildren()
remove only first level children. close #135
This commit is contained in:
@@ -528,7 +528,7 @@ suite('Container', function() {
|
||||
layer.draw();
|
||||
|
||||
assert.equal(layer.children.length, 0, 'layer should have 0 children');
|
||||
assert.equal(group.children.length, 0, 'group should have 0 children');
|
||||
assert.equal(group.children.length, 2, 'group still should have 2 children');
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
|
Reference in New Issue
Block a user