(val)
| 26897 | } |
| 26898 | |
| 26899 | function parseNumberAttrVal(val) { |
| 26900 | if (isDefined(val) && !isNumber(val)) { |
| 26901 | val = parseFloat(val); |
| 26902 | } |
| 26903 | return !isNumberNaN(val) ? val : undefined; |
| 26904 | } |
| 26905 | |
| 26906 | function isNumberInteger(num) { |
| 26907 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected