diff --git a/src/validator.js b/src/validator.js index ce5ba32..174cb77 100755 --- a/src/validator.js +++ b/src/validator.js @@ -598,7 +598,7 @@ Validator.stopOnError = function (attributes) { * @param {string} message * @return {void} */ -Validator.register = function (name, fn, message, fnReplacement) { +Validator.register = function (name, fn, message) { var lang = Validator.getDefaultLang(); Rules.register(name, fn); Lang._setRuleMessage(lang, name, message); @@ -610,10 +610,9 @@ Validator.register = function (name, fn, message, fnReplacement) { * @param {string} name * @param {function} fn * @param {string} message - * @param {function} fnReplacement * @return {void} */ -Validator.registerImplicit = function (name, fn, message, fnReplacement) { +Validator.registerImplicit = function (name, fn, message) { var lang = Validator.getDefaultLang(); Rules.registerImplicit(name, fn); Lang._setRuleMessage(lang, name, message); @@ -627,7 +626,7 @@ Validator.registerImplicit = function (name, fn, message, fnReplacement) { * @param {string} message * @return {void} */ -Validator.registerAsync = function (name, fn, message, fnReplacement) { +Validator.registerAsync = function (name, fn, message) { var lang = Validator.getDefaultLang(); Rules.registerAsync(name, fn); Lang._setRuleMessage(lang, name, message);