(val)
| 26832 | } |
| 26833 | |
| 26834 | function parseNumberAttrVal(val) { |
| 26835 | if (isDefined(val) && !isNumber(val)) { |
| 26836 | val = parseFloat(val); |
| 26837 | } |
| 26838 | return !isNumberNaN(val) ? val : undefined; |
| 26839 | } |
| 26840 | |
| 26841 | function isNumberInteger(num) { |
| 26842 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
no test coverage detected