mirror of
https://github.com/konvajs/konva.git
synced 2025-12-04 10:58:22 +08:00
refined global object temp nodes has removal when removing nodes from container. Also added another unit test
This commit is contained in:
6
dist/kinetic-core.js
vendored
6
dist/kinetic-core.js
vendored
@@ -873,8 +873,10 @@ Kinetic.Container.prototype = {
|
||||
_remove: function(child) {
|
||||
if(this.children[child.index]._id == child._id) {
|
||||
var stage = this.getStage();
|
||||
stage._removeId(child);
|
||||
stage._removeName(child);
|
||||
if(stage !== undefined) {
|
||||
stage._removeId(child);
|
||||
stage._removeName(child);
|
||||
}
|
||||
|
||||
var go = Kinetic.GlobalObject;
|
||||
for(var n = 0; n < go.tempNodes.length; n++) {
|
||||
|
||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user