Skip to content

Commit

Permalink
Merge pull request #259 from Nazanin1369/master
Browse files Browse the repository at this point in the history
#257 Fix for initialValidity set up
  • Loading branch information
Huei Tan authored Dec 13, 2016
2 parents 6fc5b4b + 0640de7 commit c92d8d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/validator.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@
/**
* Set initial validity to undefined if no boolean value is transmitted
*/
var initialValidity;
if (typeof scope.initialValidity === 'boolean') {
initialValidity = scope.initialValidity;
var initialValidity = void 0;
if (typeof attrs.initialValidity === 'boolean') {
initialValidity = attrs.initialValidity;
}

/**
Expand Down

0 comments on commit c92d8d7

Please sign in to comment.