diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-03-08 09:54:57 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-03-08 09:54:57 +0100 |
| commit | 526a595c5e00f171eb814f063e58a6c18c5784d4 (patch) | |
| tree | 7043e1fe7a6d2434fc6e2072961948bb2c3e44dd /store.js | |
| parent | 1ed98c27ff3c1a825e75783481a4e739fb610bdb (diff) | |
| parent | b6d846444e44d41842e253b7276cd590d7163349 (diff) | |
| download | snap-526a595c5e00f171eb814f063e58a6c18c5784d4.tar.gz snap-526a595c5e00f171eb814f063e58a6c18c5784d4.zip | |
Merge branch 'development' into gh-pages
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 = '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; }; |
