Commit fd319d3
committed
control: fix check if argument is number
Number.isNaN("colour") returns false so things break. +"colour" is
NaN so Number.isNaN(+"colour") returns true and things work. Style
checker requires that +x be spelled Number(x).
Signed-off-by: Peter A. Bigot <[email protected]>1 parent 1cb3bfb commit fd319d3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments