From 0640de71ab045037b0fba86fd0a278e748d67786 Mon Sep 17 00:00:00 2001 From: nazanin1369 Date: Sat, 5 Nov 2016 12:12:02 -0700 Subject: [PATCH] :sparkle: #257 Fix for initialValidity set up --- src/validator.directive.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validator.directive.js b/src/validator.directive.js index 992f369..2114404 100644 --- a/src/validator.directive.js +++ b/src/validator.directive.js @@ -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; } /**