Skip to content

Commit

Permalink
#4163 #4164 Forgot to rename one use
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Feb 21, 2017
1 parent 0e4075d commit 6016da3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/definitions/behaviors/form.js
Expand Up @@ -595,7 +595,7 @@ $.fn.form = function(parameters) {

field: function(identifier) {
module.verbose('Checking for existence of a field with identifier', identifier);
identifier = module.escape.regExp(identifier);
identifier = module.escape.string(identifier);
if(typeof identifier !== 'string') {
module.error(error.identifier, identifier);
}
Expand Down Expand Up @@ -830,6 +830,11 @@ $.fn.form = function(parameters) {

// takes a validation object and returns whether field passes validation
field: function(field, fieldName) {
if(field == 'string') {
field = {
field: identifier
}
}
var
identifier = field.identifier || fieldName,
$field = module.get.field(identifier),
Expand Down

0 comments on commit 6016da3

Please sign in to comment.