mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
fix #500
This commit is contained in:
parent
1d4a65ae08
commit
6c46e44bbd
@ -153,6 +153,10 @@
|
||||
if(content && Kinetic.Util._isInDocument(content)) {
|
||||
this.getContainer().removeChild(content);
|
||||
}
|
||||
var index = Kinetic.stages.indexOf(this);
|
||||
if (index > -1) {
|
||||
Kinetic.stages.splice(index, 1);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* get pointer position which can be a touch position or mouse position
|
||||
|
@ -403,6 +403,7 @@ suite('Stage', function() {
|
||||
assert.equal(Kinetic.names.stageFalconName, undefined, 'stage should no longer be in names map');
|
||||
assert.equal(Kinetic.ids.circleFalconId, undefined, 'circle should no longer be in ids map');
|
||||
assert.equal(Kinetic.names.circleFalconName, undefined, 'circle should no longer be in names map');
|
||||
assert.equal(Kinetic.stages.indexOf(stage) === -1, true, 'stage should not be in stages array');
|
||||
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user