summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index e4c75dd..6af9137 100644
--- a/gui.js
+++ b/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) {