Merge pull request #58 from queryselector/issue-53

Fixed #53
pull/3/merge
Jens Mönig 2013-04-23 08:04:41 -07:00
commit 5571c656de
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -3444,16 +3444,19 @@ ReporterBlockMorph.prototype.getSlotSpec = function () {
// ReporterBlockMorph events
ReporterBlockMorph.prototype.mouseClickLeft = function (pos) {
var isRing;
if (this.parent instanceof BlockInputFragmentMorph) {
return this.parent.mouseClickLeft();
}
if (this.parent instanceof TemplateSlotMorph) {
isRing = this.parent.parent && this.parent.parent.parent &&
this.parent.parent.parent instanceof RingMorph;
new DialogBoxMorph(
this,
this.setSpec,
this
).prompt(
"Input name",
isRing ? "Input name" : "Script variable name",
this.blockSpec,
this.world()
);