(val)
| 24725 | } |
| 24726 | |
| 24727 | function parseNumberAttrVal(val) { |
| 24728 | if (isDefined(val) && !isNumber(val)) { |
| 24729 | val = parseFloat(val); |
| 24730 | } |
| 24731 | return !isNumberNaN(val) ? val : undefined; |
| 24732 | } |
| 24733 | |
| 24734 | function isNumberInteger(num) { |
| 24735 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected