Avoid incompatibility warning for very old (pre-earmarked) projects

pull/3/merge
jmoenig 2015-02-23 15:15:46 +01:00
rodzic e6dcf07b3d
commit 1f88f65e9d
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -2446,3 +2446,4 @@ ______
------
* Blocks, Objects: Add user-interaction choices to the “When I am ...” hat block
* Update German translation
* Store: Avoid incompatibility warning for very old (pre-earmarked) projects

Wyświetl plik

@ -61,7 +61,7 @@ SyntaxElementMorph, Variable*/
// Global stuff ////////////////////////////////////////////////////////
modules.store = '2015-January-21';
modules.store = '2015-February-23';
// 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' +