(val)
| 25487 | } |
| 25488 | |
| 25489 | function parseNumberAttrVal(val) { |
| 25490 | if (isDefined(val) && !isNumber(val)) { |
| 25491 | val = parseFloat(val); |
| 25492 | } |
| 25493 | return !isNumberNaN(val) ? val : undefined; |
| 25494 | } |
| 25495 | |
| 25496 | function isNumberInteger(num) { |
| 25497 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected