summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorErik Olsson <eolsson@gmail.com>2014-12-14 18:48:03 +0100
committerErik Olsson <eolsson@gmail.com>2014-12-14 18:48:03 +0100
commit57bef2b736f14cf25d6edd23ec4336d3c7146b5c (patch)
tree8ee587603ee410a67c4dc6394db18cb4be35c26a /store.js
parent43626c46519d88acb415e76c49b4983907de9dcd (diff)
parent0a239b703c8c7fde5540ce63c4236522a22ee049 (diff)
downloadsnap-57bef2b736f14cf25d6edd23ec4336d3c7146b5c.tar.gz
snap-57bef2b736f14cf25d6edd23ec4336d3c7146b5c.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'store.js')
-rw-r--r--store.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/store.js b/store.js
index cb91139..7b2b7e1 100644
--- a/store.js
+++ b/store.js
@@ -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);