Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit 6df1c01

Browse files
authored
fix reference error
The "parentForm" variable is not initialized therefore leads to: ``` ReferenceError: parentForm is not defined ```
1 parent b6c3799 commit 6df1c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ angular
816816
var formName = (!!formObj) ? formObj.getAttribute("name") : null;
817817

818818
if (!!formObj && !!formName) {
819-
parentForm = (!!_globalOptions && !!_globalOptions.controllerAs && formName.indexOf('.') >= 0)
819+
var parentForm = (!!_globalOptions && !!_globalOptions.controllerAs && formName.indexOf('.') >= 0)
820820
? objectFindById(self.scope, formName, '.')
821821
: self.scope[formName];
822822

0 commit comments

Comments
 (0)