diff options
Diffstat (limited to 'store.js')
| -rw-r--r-- | store.js | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -61,7 +61,7 @@ SyntaxElementMorph, Variable*/ // Global stuff //////////////////////////////////////////////////////// -modules.store = '2014-October-01'; +modules.store = '2014-December-17'; // XML_Serializer /////////////////////////////////////////////////////// @@ -261,11 +261,14 @@ SnapSerializer.prototype.watcherLabels = { yPosition: 'y position', direction: 'direction', getScale: 'size', + getTempo: 'tempo', getLastAnswer: 'answer', + getLastMessage: 'message', getTimer: 'timer', getCostumeIdx: 'costume #', reportMouseX: 'mouse x', - reportMouseY: 'mouse y' + reportMouseY: 'mouse y', + reportThreadCount: 'processes' }; // SnapSerializer instance creation: @@ -1199,6 +1202,10 @@ SnapSerializer.prototype.loadValue = function (model) { if (el) { v.outerContext = this.loadValue(el); } + if (v.outerContext && v.receiver && + !v.outerContext.variables.parentFrame) { + v.outerContext.variables.parentFrame = v.receiver.variables; + } return v; case 'costume': center = new Point(); @@ -1824,9 +1831,8 @@ Context.prototype.toXML = function (serializer) { return ''; } return serializer.format( - '<context% ~><inputs>%</inputs><variables>%</variables>' + + '<context ~><inputs>%</inputs><variables>%</variables>' + '%<receiver>%</receiver>%</context>', - this.isLambda ? ' lambda="lambda"' : '', this.inputs.reduce( function (xml, input) { return xml + serializer.format('<input>$</input>', input); |
