From 770208e9774f1e4d03037f1508ce5e953c75fbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E5=B8=9B?= Date: Mon, 13 Jul 2015 10:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmethod=E4=B8=BAfalse=20?= =?UTF-8?q?=E6=97=A0=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator.js b/validator.js index dc32a3e..1983259 100755 --- a/validator.js +++ b/validator.js @@ -377,7 +377,7 @@ , identifie = options.identifie || '[required]' , klass = options.error || 'error' , isErrorOnParent = options.isErrorOnParent || false - , method = options.method || 'blur' + , method = (typeof options.method === "undefined" && 'blur') || options.method , before = options.before || function() {return true;} , after = options.after || function() {return true;} , errorCallback = options.errorCallback || function(){}