(val)
| 25868 | } |
| 25869 | |
| 25870 | function parseNumberAttrVal(val) { |
| 25871 | if (isDefined(val) && !isNumber(val)) { |
| 25872 | val = parseFloat(val); |
| 25873 | } |
| 25874 | return !isNumberNaN(val) ? val : undefined; |
| 25875 | } |
| 25876 | |
| 25877 | function isNumberInteger(num) { |
| 25878 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected