diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-01 11:57:12 -0400 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-01 11:57:12 -0400 |
| commit | 86e4170a571455d3f828fd2b1161313b3126beef (patch) | |
| tree | 156f10b214b533dee374ff6b3d37085122d33cc5 | |
| parent | 4d5b9ca135233a23b556fd2f07e0ff6bd8a0bd74 (diff) | |
| download | snap-86e4170a571455d3f828fd2b1161313b3126beef.tar.gz snap-86e4170a571455d3f828fd2b1161313b3126beef.zip | |
indicate numeric inputs in the block prototype with the # sign
| -rw-r--r-- | byob.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -106,7 +106,7 @@ SymbolMorph, isNil*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2015-March-02'; +modules.byob = '2015-May-01'; // Declarations @@ -2049,7 +2049,13 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () { )) { suff = ' \u03BB'; } else if (this.defaultValue) { - suff = ' = ' + this.defaultValue.toString(); + if (this.type === '%n') { + suff = ' # = ' + this.defaultValue.toString(); + } else { // 'any' or 'text' + suff = ' = ' + this.defaultValue.toString(); + } + } else if (this.type === '%n') { + suff = ' #'; } return this.labelString + suff; }; |
