Commit 0fdb4996 authored by David Schnur's avatar David Schnur

Merge pull request #1027 from leewillis77/master

Remove $.isNumeric() for compat with jQuery < 1.7. Fixes #1026
parents 24f70fc6 5fe3646a
...@@ -181,12 +181,13 @@ More detail and specific examples can be found in the included HTML file. ...@@ -181,12 +181,13 @@ More detail and specific examples can be found in the included HTML file.
// that the user may have stored in higher indexes. // that the user may have stored in higher indexes.
if ($.isArray(value)) { if ($.isArray(value)) {
if ($.isNumeric(value[1])) { // Equivalent to $.isNumeric() but compatible with jQuery < 1.7
if (!isNaN(parseFloat(value[1])) && isFinite(value[1])) {
value[1] = +value[1]; value[1] = +value[1];
} else { } else {
value[1] = 0; value[1] = 0;
} }
} else if ($.isNumeric(value)) { } else if (!isNaN(parseFloat(value)) && isFinite(value)) {
value = [1, +value]; value = [1, +value];
} else { } else {
value = [1, 0]; value = [1, 0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment