prevent loading several instances of the same block definition
pull/3/merge
jmoenig 2013-09-16 17:00:10 +02:00
rodzic 4ad2df7a84
commit d278b2b150
2 zmienionych plików z 2 dodań i 0 usunięć

1
gui.js
Wyświetl plik

@ -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();

Wyświetl plik

@ -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