diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-12-07 11:51:38 +0100 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-12-07 11:51:38 +0100 |
| commit | 54da483ee90eaac2f92d6aa1ee9394b3a77d2181 (patch) | |
| tree | bbeec59b6c2c4b7896386865cea5750911e63799 | |
| parent | 64a457873756139d72c4ac33ce084dec2e9ef725 (diff) | |
| parent | e23a6ab4b3ebf0a4309a65ce615ffc010b383e4e (diff) | |
| download | snap-54da483ee90eaac2f92d6aa1ee9394b3a77d2181.tar.gz snap-54da483ee90eaac2f92d6aa1ee9394b3a77d2181.zip | |
Merge remote-tracking branch 'origin/issue_557' into development
| -rw-r--r-- | gui.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3455,6 +3455,12 @@ IDE_Morph.prototype.setLanguage = function (lang, callback) { IDE_Morph.prototype.reflectLanguage = function (lang, callback) { var projectData; SnapTranslator.language = lang; + this.world().children.forEach(function (morph) { + if (morph instanceof BlockEditorMorph) { + morph.updateDefinition(); // save custom blocks + // otherwise, initBlocks() will reset the definition + } + }); if (!this.loadNewProject) { if (Process.prototype.isCatchingErrors) { try { |
