kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #1609 from micahcowan/fix-ring-renames
Fixes #1607 - fix var refactor for ringspull/29/head
commit
491f8cbe9d
|
@ -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