summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-03-01 09:42:02 +0100
committerGubolin <gubolin@fantasymail.de>2015-03-01 09:42:02 +0100
commit63234d8858b20a5faf7b1dee696e0db332360d2d (patch)
treef5a551dba9e23b24a443e73694896c5db17324d8 /store.js
parent438fe4e3619c5dc52ca625a1e16048b30cf16c7d (diff)
parentb1d78532557371dfc740c078c76c13e8e0f66896 (diff)
downloadsnap-63234d8858b20a5faf7b1dee696e0db332360d2d.tar.gz
snap-63234d8858b20a5faf7b1dee696e0db332360d2d.zip
merge
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 7db27a6..b872d0b 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph, Variable*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2015-January-21';
+modules.store = '2015-February-28';
// XML_Serializer ///////////////////////////////////////////////////////
@@ -320,7 +320,7 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode, ide) {
var appInfo = xmlNode.attributes.app,
app = appInfo ? appInfo.split(' ')[0] : null;
- if (ide && app !== this.app.split(' ')[0]) {
+ if (ide && app && app !== this.app.split(' ')[0]) {
ide.inform(
app + ' Project',
'This project has been created by a different app:\n\n' +
@@ -977,7 +977,11 @@ SnapSerializer.prototype.loadBlock = function (model, isReporter) {
);
}
if (!receiver) {
- return this.obsoleteBlock(isReporter);
+ if (!isGlobal) {
+ receiver = this.project.stage;
+ } else {
+ return this.obsoleteBlock(isReporter);
+ }
}
if (isGlobal) {
info = detect(receiver.globalBlocks, function (block) {
@@ -1023,6 +1027,7 @@ SnapSerializer.prototype.loadBlock = function (model, isReporter) {
this.loadInput(child, inputs[i], block);
}
}, this);
+ block.cachedInputs = null;
return block;
};