Skip to content

Commit

Permalink
Remove multiple validator (temporarily)
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Aug 21, 2014
1 parent 18c9a30 commit 744c2e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ module.exports = function(grunt) {
// Register Task
grunt.registerTask('dev', ['browserSync', 'watch']);
grunt.registerTask('build', ['clean', 'concat', 'uglify']);
grunt.registerTask('check', ['jshint', 'jsbeautifier']); // use this before commit
grunt.registerTask('check', ['jshint', 'jsbeautifier', 'build']); // use this before commit

};
10 changes: 5 additions & 5 deletions dist/angular-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@

/**
* validator
* @type {*|Array}
* @type {*}
*
* Convert user input String to Array
*/
var validator = attrs.validator.split(',');
var validator = attrs.validator;

/**
* guid use
Expand Down Expand Up @@ -471,10 +471,10 @@
});

/**
* Check Every validator
* Check validator
*/
validator.forEach(function(validation) {

(function(validation) {
/**
* Click submit form, check the validity when submit
*/
Expand Down Expand Up @@ -556,7 +556,7 @@
checkValidation(scope, element, attrs, ctrl, validation, value);
});

});
})(validator);

$timeout(function() {
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-validation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@

/**
* validator
* @type {*|Array}
* @type {*}
*
* Convert user input String to Array
*/
var validator = attrs.validator.split(',');
var validator = attrs.validator;

/**
* guid use
Expand Down Expand Up @@ -190,10 +190,10 @@
});

/**
* Check Every validator
* Check validator
*/
validator.forEach(function(validation) {

(function(validation) {
/**
* Click submit form, check the validity when submit
*/
Expand Down Expand Up @@ -275,7 +275,7 @@
checkValidation(scope, element, attrs, ctrl, validation, value);
});

});
})(validator);

$timeout(function() {
/**
Expand Down

0 comments on commit 744c2e6

Please sign in to comment.