kopia lustrzana https://github.com/backface/turtlestitch
propagate DELETE to nested sprite parts
rodzic
b2399309e4
commit
9f7028dbf9
6
gui.js
6
gui.js
|
@ -69,7 +69,7 @@ SpeechBubbleMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2014-July-29';
|
||||
modules.gui = '2014-July-30';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -1831,7 +1831,9 @@ IDE_Morph.prototype.duplicateSprite = function (sprite) {
|
|||
};
|
||||
|
||||
IDE_Morph.prototype.removeSprite = function (sprite) {
|
||||
var idx = this.sprites.asArray().indexOf(sprite) + 1;
|
||||
var idx, myself = this;
|
||||
sprite.parts.forEach(function (part) {myself.removeSprite(part); });
|
||||
idx = this.sprites.asArray().indexOf(sprite) + 1;
|
||||
this.stage.threads.stopAllForReceiver(sprite);
|
||||
sprite.destroy();
|
||||
this.stage.watchers().forEach(function (watcher) {
|
||||
|
|
|
@ -2254,3 +2254,4 @@ ______
|
|||
140730
|
||||
------
|
||||
* Objects: propagate HIDE and SHOW to nested sprite parts
|
||||
* GUI: propagate DELETE to nested sprite parts
|
||||
|
|
Ładowanie…
Reference in New Issue