kopia lustrzana https://github.com/backface/turtlestitch
Fixes #1607 - fix var refactor for rings
rodzic
37291444de
commit
4628d57a07
|
@ -668,7 +668,7 @@ SyntaxElementMorph.prototype.refactorVarInStack = function (oldName, newName, is
|
|||
// Rename all oldName var occurrences found in this block stack into newName
|
||||
// taking care of not being too greedy
|
||||
|
||||
if (this instanceof RingMorph
|
||||
if ((this instanceof RingMorph && contains(this.inputNames(), oldName))
|
||||
|| (!isScriptVar && this.definesScriptVariable(oldName))) {
|
||||
return;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue