kopia lustrzana https://github.com/backface/turtlestitch
indicate numeric inputs in the block prototype with the # sign
rodzic
585d1541b8
commit
c46d8093ef
8
byob.js
8
byob.js
|
@ -106,7 +106,7 @@ SymbolMorph, isNil*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.byob = '2015-March-02';
|
modules.byob = '2015-May-01';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -2049,8 +2049,14 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () {
|
||||||
)) {
|
)) {
|
||||||
suff = ' \u03BB';
|
suff = ' \u03BB';
|
||||||
} else if (this.defaultValue) {
|
} else if (this.defaultValue) {
|
||||||
|
if (this.type === '%n') {
|
||||||
|
suff = ' # = ' + this.defaultValue.toString();
|
||||||
|
} else { // 'any' or 'text'
|
||||||
suff = ' = ' + this.defaultValue.toString();
|
suff = ' = ' + this.defaultValue.toString();
|
||||||
}
|
}
|
||||||
|
} else if (this.type === '%n') {
|
||||||
|
suff = ' #';
|
||||||
|
}
|
||||||
return this.labelString + suff;
|
return this.labelString + suff;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue