kopia lustrzana https://github.com/backface/turtlestitch
fixed #738
rodzic
e906290f47
commit
802ace18d1
13
blocks.js
13
blocks.js
|
@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.blocks = '2015-March-06';
|
||||
modules.blocks = '2015-March-09';
|
||||
|
||||
|
||||
var SyntaxElementMorph;
|
||||
|
@ -400,10 +400,14 @@ SyntaxElementMorph.prototype.debugCachedInputs = function () {
|
|||
}
|
||||
for (i = 0; i < realInputs.length; i += 1) {
|
||||
if (this.cachedInputs[i] !== realInputs[i]) {
|
||||
throw new Error('cached input does not match ' +
|
||||
throw new Error('cached input does not match: ' +
|
||||
this.constructor.name +
|
||||
' #' +
|
||||
i +
|
||||
' ' +
|
||||
i);
|
||||
this.cachedInputs[i].constructor.name +
|
||||
' != ' +
|
||||
realInputs[i].constructor.name);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -3059,6 +3063,9 @@ BlockMorph.prototype.fullCopy = function () {
|
|||
ans.setSpec(this.instantiationSpec);
|
||||
}
|
||||
ans.allChildren().filter(function (block) {
|
||||
if (block instanceof SyntaxElementMorph) {
|
||||
block.cachedInputs = null;
|
||||
}
|
||||
return !isNil(block.comment);
|
||||
}).forEach(function (block) {
|
||||
var cmnt = block.comment.fullCopy();
|
||||
|
|
|
@ -2466,3 +2466,7 @@ ______
|
|||
150306
|
||||
------
|
||||
* Blocks: fixed #736
|
||||
|
||||
150309
|
||||
------
|
||||
* Blocks: fixed #738
|
||||
|
|
Ładowanie…
Reference in New Issue