Merge pull request #1609 from micahcowan/fix-ring-renames

Fixes #1607 - fix var refactor for rings
pull/29/head
Jens Mönig 2017-01-09 15:01:50 +01:00 zatwierdzone przez GitHub
commit 491f8cbe9d
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;
}