kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #1417 from brollb/unringify-ring
Added check that parent is RingMorph. Fixes #1416dev
commit
1e4bb8a3ec
|
@ -2445,7 +2445,7 @@ BlockMorph.prototype.userMenu = function () {
|
||||||
}
|
}
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
if (this.parentThatIsA(RingMorph)) {
|
if (this.parent.parentThatIsA(RingMorph)) {
|
||||||
menu.addLine();
|
menu.addLine();
|
||||||
menu.addItem("unringify", 'unringify');
|
menu.addItem("unringify", 'unringify');
|
||||||
menu.addItem("ringify", 'ringify');
|
menu.addItem("ringify", 'ringify');
|
||||||
|
@ -2598,7 +2598,7 @@ BlockMorph.prototype.ringify = function () {
|
||||||
|
|
||||||
BlockMorph.prototype.unringify = function () {
|
BlockMorph.prototype.unringify = function () {
|
||||||
// remove a Ring around me, if any
|
// remove a Ring around me, if any
|
||||||
var ring = this.parentThatIsA(RingMorph),
|
var ring = this.parent.parentThatIsA(RingMorph),
|
||||||
top = this.topBlock(),
|
top = this.topBlock(),
|
||||||
scripts = this.parentThatIsA(ScriptsMorph),
|
scripts = this.parentThatIsA(ScriptsMorph),
|
||||||
block,
|
block,
|
||||||
|
|
Ładowanie…
Reference in New Issue