(val)
| 26025 | } |
| 26026 | |
| 26027 | function parseNumberAttrVal(val) { |
| 26028 | if (isDefined(val) && !isNumber(val)) { |
| 26029 | val = parseFloat(val); |
| 26030 | } |
| 26031 | return !isNumberNaN(val) ? val : undefined; |
| 26032 | } |
| 26033 | |
| 26034 | function isNumberInteger(num) { |
| 26035 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected