kopia lustrzana https://github.com/backface/turtlestitch
fixed a conversion bug when retrieving a numerical value from an input field
rodzic
d95c123f66
commit
24cf345b1c
|
@ -4,6 +4,11 @@
|
|||
|
||||
* **Notable Changes:**
|
||||
* 10% speed-up for reporters, WARP and TURBO
|
||||
* **Notable Fixes:**
|
||||
* fixed a bug when changing a Boolean input slot with a default value to numerical type
|
||||
|
||||
### 2021-01-05
|
||||
* widgets: fixed a conversion bug when retrieving a numerical value from an input field
|
||||
|
||||
### 2021-01-04
|
||||
* new dev version
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="icon" href="src/favicon.ico">
|
||||
<script src="src/morphic.js?version=2020-12-02"></script>
|
||||
<script src="src/symbols.js?version=2020-10-07"></script>
|
||||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/widgets.js?version=2021-01-05"></script>
|
||||
<script src="src/blocks.js?version=2020-12-22"></script>
|
||||
<script src="src/threads.js?version=2021-01-04"></script>
|
||||
<script src="src/objects.js?version=2020-12-22"></script>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2020 by Jens Mönig
|
||||
Copyright (C) 2021 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
@ -85,7 +85,7 @@ HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
|
|||
ArrowMorph, MenuMorph, isString, isNil, SliderMorph, MorphicPreferences,
|
||||
ScrollFrameMorph, MenuItemMorph, Note, useBlurredShadows*/
|
||||
|
||||
modules.widgets = '2020-October-06';
|
||||
modules.widgets = '2021-January-05';
|
||||
|
||||
var PushButtonMorph;
|
||||
var ToggleButtonMorph;
|
||||
|
@ -3100,7 +3100,7 @@ InputFieldMorph.prototype.getValue = function () {
|
|||
var num,
|
||||
contents = this.contents();
|
||||
if (this.isNumeric) {
|
||||
num = parseFloat(contents.text);
|
||||
num = parseFloat(contents.text.text);
|
||||
if (!isNaN(num)) {
|
||||
return num;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue