Skip to content

Commit 34decfe

Browse files
committed
Using plain $watch instead of $watchCollection.
1 parent d1d823d commit 34decfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/bootstrap-angular-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/directives/validation.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ angular.module('bootstrap.angular.validation').directive('bsValidation', [
154154

155155
if (shouldValidateOnSubmit && ngFormController) {
156156
// register watchers for submission touch and valid
157-
$scope.$watchCollection(function() {
157+
$scope.$watch(function() {
158158
return ngFormController.$submitted;
159159
}, function(submitted) {
160160
displayValidationState = submitted;

0 commit comments

Comments
 (0)