Commit 5fe3646a authored by Lee Willis's avatar Lee Willis

Remove $.isNumeric() for compat with jQuery < 1.7. Fixes #1026

parent 24f70fc6
......@@ -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.
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];
} else {
value[1] = 0;
}
} else if ($.isNumeric(value)) {
} else if (!isNaN(parseFloat(value)) && isFinite(value)) {
value = [1, +value];
} else {
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