diff options
| author | Erik Olsson <eolsson@gmail.com> | 2014-12-14 18:48:03 +0100 |
|---|---|---|
| committer | Erik Olsson <eolsson@gmail.com> | 2014-12-14 18:48:03 +0100 |
| commit | 57bef2b736f14cf25d6edd23ec4336d3c7146b5c (patch) | |
| tree | 8ee587603ee410a67c4dc6394db18cb4be35c26a /store.js | |
| parent | 43626c46519d88acb415e76c49b4983907de9dcd (diff) | |
| parent | 0a239b703c8c7fde5540ce63c4236522a22ee049 (diff) | |
| download | snap-byow-57bef2b736f14cf25d6edd23ec4336d3c7146b5c.tar.gz snap-byow-57bef2b736f14cf25d6edd23ec4336d3c7146b5c.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'store.js')
| -rw-r--r-- | store.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -61,7 +61,7 @@ SyntaxElementMorph, Variable*/ // Global stuff //////////////////////////////////////////////////////// -modules.store = '2014-October-01'; +modules.store = '2014-December-06'; // XML_Serializer /////////////////////////////////////////////////////// @@ -261,7 +261,9 @@ SnapSerializer.prototype.watcherLabels = { yPosition: 'y position', direction: 'direction', getScale: 'size', + getTempo: 'tempo', getLastAnswer: 'answer', + getLastMessage: 'message', getTimer: 'timer', getCostumeIdx: 'costume #', reportMouseX: 'mouse x', @@ -1199,6 +1201,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 +1830,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); |
