Skip to content

Commit

Permalink
❇️ #257 Fix for initialValidity set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazanin1369 committed Nov 5, 2016
1 parent b2f7812 commit 0640de7
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 @@ -239,9 +239,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 0640de7

Please sign in to comment.