File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 793
793
// If we are using the custon validation type, build the index for the rule.
794
794
// Otherwise if we are doing a function call, make the call and return the object
795
795
// that is passed back.
796
- var rule_index = jQuery . inArray ( rule , rules ) + 1 ;
796
+ var rule_index = jQuery . inArray ( rule , rules ) ;
797
797
if ( rule === "custom" || rule === "funcCall" ) {
798
798
var custom_validation_type = rules [ rule_index + 1 ] ;
799
799
rule = rule + "[" + custom_validation_type + "]" ;
800
+ // Delete the rule from the rules array so that it doesn't try to call the
801
+ // same rule over again
802
+ delete ( rules [ rule_index ] ) ;
800
803
}
801
- // Change the rule to the composite rule, if it was different from the original,
802
- // and delete the rule from the rules array so that it doesn't try to call the
803
- // same rule over again
804
+ // Change the rule to the composite rule, if it was different from the original
804
805
var alteredRule = rule ;
805
- delete ( rules [ rule_index ] ) ;
806
806
807
807
808
808
var element_classes = ( field . attr ( "data-validation-engine" ) ) ? field . attr ( "data-validation-engine" ) : field . attr ( "class" ) ;
You can’t perform that action at this time.
0 commit comments