mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
validate: * Fixed two accidental global variables
This commit is contained in:
4
jquery.validate.js
vendored
4
jquery.validate.js
vendored
@@ -715,7 +715,7 @@ $.extend($.validator, {
|
||||
},
|
||||
|
||||
previousValue: function(element) {
|
||||
return $.data(element, "previousValue") || $.data(element, "previousValue", previous = {
|
||||
return $.data(element, "previousValue") || $.data(element, "previousValue", {
|
||||
old: null,
|
||||
valid: true,
|
||||
message: this.defaultMessage( element, "remote" )
|
||||
@@ -1032,7 +1032,7 @@ $.extend($.validator, {
|
||||
|
||||
value = value.replace(/\D/g, "");
|
||||
|
||||
for (n = value.length - 1; n >= 0; n--) {
|
||||
for (var n = value.length - 1; n >= 0; n--) {
|
||||
var cDigit = value.charAt(n);
|
||||
var nDigit = parseInt(cDigit, 10);
|
||||
if (bEven) {
|
||||
|
||||
Reference in New Issue
Block a user