Revert to also converting parameters of range method to numbers. Closes gh-702

Unlike min/max, there's no range attribute in html5. For dates, min/max can be used.
This commit is contained in:
jcbowman
2013-03-21 21:01:24 -03:00
committed by Jörn Zaefferer
parent 8250adb140
commit 10d90529c9

2
jquery.validate.js vendored
View File

@@ -940,7 +940,7 @@ $.extend($.validator, {
rules[this] = Number(rules[this]);
}
});
$.each(['rangelength'], function() {
$.each(['rangelength', 'range'], function() {
var parts;
if ( rules[this] ) {
if ( $.isArray(rules[this]) ) {