Skip to content

Commit

Permalink
Replaced $.isFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Jun 23, 2020
1 parent 41afd40 commit ba82525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -1320,7 +1320,7 @@ $.extend( $.validator, {

// Evaluate parameters
$.each( rules, function( rule, parameter ) {
rules[ rule ] = $.isFunction( parameter ) && rule !== "normalizer" ? parameter( element ) : parameter;
rules[ rule ] = typeof parameter === "function" && rule !== "normalizer" ? parameter( element ) : parameter;
} );

// Clean number parameters
Expand Down

0 comments on commit ba82525

Please sign in to comment.