summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-09-16 17:00:10 +0200
committerjmoenig <jens@moenig.org>2013-09-16 17:00:10 +0200
commitd278b2b1507027ead1cf14a901b800dad918484b (patch)
treee47f10d147c42643f4a17c2885472a7b22d64aff
parent4ad2df7a84e0a2808862e18e2ff2392d24b16e56 (diff)
downloadsnap-d278b2b1507027ead1cf14a901b800dad918484b.tar.gz
snap-d278b2b1507027ead1cf14a901b800dad918484b.zip
fixed #115
prevent loading several instances of the same block definition
-rw-r--r--gui.js1
-rwxr-xr-xhistory.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 23b0c63..43fb535 100644
--- a/gui.js
+++ b/gui.js
@@ -2808,6 +2808,7 @@ IDE_Morph.prototype.rawOpenBlocksString = function (str, name, silently) {
blocks.forEach(function (def) {
def.receiver = myself.stage;
myself.stage.globalBlocks.push(def);
+ myself.stage.replaceDoubleDefinitionsFor(def);
});
this.flushPaletteCache();
this.refreshPalette();
diff --git a/history.txt b/history.txt
index a43793b..32efec2 100755
--- a/history.txt
+++ b/history.txt
@@ -1904,3 +1904,4 @@ ______
* GUI: getPublicProject adjustments (lowercase username)
* GUI: prompt() - invocation fixes (null-choices)
* GUI: synchronous URL fetching simplifications for libraries and example projects
+* GUI: fixed #115 - prevent loading several instances of the same block definition