summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index 9fc4808..116c792 100644
--- a/objects.js
+++ b/objects.js
@@ -4428,6 +4428,12 @@ StageMorph.prototype.init = function (globals) {
try {
model = ide.serializer.parse(data);
message = ide.serializer.loadValue(model);
+
+ // TODO: If a Context is sent, a new Sprite appears.
+ // This below is just a workaround for one-level rings,
+ // objects should be cleaned recursively.
+ message.receiver = null;
+ message.outerContext = null;
} catch (err) {
console.log(err); // DEBUG
// Ok, it does not seem to be XML. It must be a string then.