diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-01 11:56:42 -0400 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-01 11:56:42 -0400 |
| commit | c46d8093ef7c65958fd044a6b070df1f3ba84f51 (patch) | |
| tree | c0e3b2be3bcafe556875782f292e8ed5c57f770b /byob.js | |
| parent | 585d1541b8ce45ba2be1367ab4ddac1b9a1095d6 (diff) | |
| download | snap-c46d8093ef7c65958fd044a6b070df1f3ba84f51.tar.gz snap-c46d8093ef7c65958fd044a6b070df1f3ba84f51.zip | |
indicate numeric inputs in the block prototype with the # sign
Diffstat (limited to 'byob.js')
| -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; }; |
