diff options
| author | Jens Mönig <jens@moenig.org> | 2013-04-23 08:04:41 -0700 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2013-04-23 08:04:41 -0700 |
| commit | 5571c656de1afbeb68beba4b22b83b9ea2204258 (patch) | |
| tree | 3c47ec7e95426a04390bf650941706a0818dd0aa | |
| parent | 4fc82b7f067adcc979c4497dd1429f0ad8979f75 (diff) | |
| parent | 7b08ca000bc874344eecc19603960c1a9e6bad24 (diff) | |
| download | snap-5571c656de1afbeb68beba4b22b83b9ea2204258.tar.gz snap-5571c656de1afbeb68beba4b22b83b9ea2204258.zip | |
Merge pull request #58 from queryselector/issue-53
Fixed #53
| -rw-r--r-- | blocks.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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() ); |
