Skip to content

Commit

Permalink
Merge pull request victorjonsson#138 from mgreter/master
Browse files Browse the repository at this point in the history
Pass formQuery to jQuery instead of spliting it
  • Loading branch information
victorjonsson committed Jul 23, 2014
2 parents 59e8415 + fc7d807 commit 5e307b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions form-validator/jquery.form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@
conf = $.extend(defaultConf, conf || {});

// Add validation to forms
$.split(conf.form, function(formQuery) {
$(conf.form).each(function(i, form) {

var $form = $(formQuery);
var $form = $(form);
$window.trigger('formValidationSetup', [$form]);

// Remove all event listeners previously added
Expand Down

0 comments on commit 5e307b5

Please sign in to comment.