Fixes #1607 - fix var refactor for rings

pull/29/head
Micah Cowan 2017-01-08 11:54:36 -08:00
rodzic 37291444de
commit 4628d57a07
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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