summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-03-07 19:28:18 +0100
committerGubolin <gubolin@fantasymail.de>2015-03-07 19:28:18 +0100
commitb83d4d83bf521b34b878662c7f145cc9286f096a (patch)
tree4998c207d00678e85831ea5fd04465fcf4864732
parentcdf8ce4e14f7c8fc12b519df8b4f5e1b33b67e60 (diff)
downloadsnap-yow-b83d4d83bf521b34b878662c7f145cc9286f096a.tar.gz
snap-yow-b83d4d83bf521b34b878662c7f145cc9286f096a.zip
add Todo with workaround
-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.