Skip to content

Commit

Permalink
移除冗余的空白字符
Browse files Browse the repository at this point in the history
  • Loading branch information
CodePlayer committed Oct 11, 2020
1 parent 2fd11ee commit b81e4ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jquery-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@Version: 1.3.7
@Author: Ready
@Date: 2020-08-24
@Documentation: https://codeplayer.vip/p/j7sud
@Documentation: https://codeplayer.vip/p/j7sud
@Email: [email protected]
@Licence: https://www.apache.org/licenses/LICENSE-2.0.html
*/
Expand All @@ -12,7 +12,7 @@
if(typeof jQuery === "undefined" || $ !== jQuery){
console && console.log("jQuery must be initialized before loading the Validator.");
return;
};
}
var V = function(method){
if(!(this instanceof V)){
return new V(method);
Expand Down Expand Up @@ -483,10 +483,10 @@
}
var success = result.status == "OK";
if( result.message ){
context.message = result.message;
context.message = result.message;
}
if(!success){
this.sendError("", value, expr, context);
this.sendError("", value, expr, context);
}
return success;
}
Expand Down Expand Up @@ -540,7 +540,7 @@
if( typeof r === 'boolean' ){
required = r;
}
}
}
}
if( !rule ) throw "validate rule not found:" + ruleName;
rule = context.rule = me.clipRule( rule );
Expand Down Expand Up @@ -643,8 +643,8 @@
if( me.callback && $.isFunction(me.callback) ){
return me.callback.call($doms, result, rules, eventType) !== false;
}
return result;
},
return result;
},

bindAttr: function(options){
var opts = $.extend({
Expand Down Expand Up @@ -680,7 +680,7 @@
});
return { validate: validate }; // 返回包含校验函数的对象,便于手动调用
},

// 发送错误信息
sendError: function(trigger, actual, expected, context){
context.trigger = trigger || context.validator;
Expand Down

0 comments on commit b81e4ac

Please sign in to comment.