Skip to content

Commit ad1c348

Browse files
committed
Merge pull request posabsolute#541 from SamJBarney/master
Final fix for the custom[url] issue
2 parents 5a28083 + 81becd5 commit ad1c348

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/jquery.validationEngine.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,12 @@
797797
if (rule === "custom" || rule === "funcCall") {
798798
var custom_validation_type = rules[rule_index + 1];
799799
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]);
800803
}
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
804805
var alteredRule = rule;
805-
delete(rules[rule_index]);
806806

807807

808808
var element_classes = (field.attr("data-validation-engine")) ? field.attr("data-validation-engine") : field.attr("class");

0 commit comments

Comments
 (0)