kopia lustrzana https://github.com/backface/turtlestitch
fixed wrong NaN display for variable watchers
Thanks, Brian, for catching this glitch!pull/3/merge
rodzic
651f44ebdf
commit
5d5fc20a6d
|
@ -1990,3 +1990,4 @@ ______
|
||||||
131112
|
131112
|
||||||
------
|
------
|
||||||
* Blocks, BYOB, Store: customizable drop-down menus for input slots
|
* Blocks, BYOB, Store: customizable drop-down menus for input slots
|
||||||
|
* Objects: fixed wrong NaN display for variable watchers
|
||||||
|
|
|
@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2013-October-14';
|
modules.objects = '2013-November-12';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -6030,7 +6030,7 @@ WatcherMorph.prototype.update = function () {
|
||||||
} else {
|
} else {
|
||||||
newValue = this.target[this.getter]();
|
newValue = this.target[this.getter]();
|
||||||
}
|
}
|
||||||
num = parseFloat(newValue);
|
num = +newValue;
|
||||||
if (!isNaN(num)) {
|
if (!isNaN(num)) {
|
||||||
newValue = Math.round(newValue * 1000000000) / 1000000000;
|
newValue = Math.round(newValue * 1000000000) / 1000000000;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue