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

Commit 10db26c

Browse files
committed
fixed indents
fixed offset indents
1 parent 631b27c commit 10db26c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/validation-common.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,21 +280,22 @@ angular
280280
return isFieldValid;
281281
} // validate()
282282

283-
//----
284-
// Private functions declaration
285-
//----------------------------------
283+
//----
284+
// Private functions declaration
285+
//----------------------------------
286+
286287
/** Get form within scope (if found)
287288
* @param self
288289
*/
289290
function getScopeForm(self) {
290-
var forms = document.querySelectorAll('form');
291-
for (var i = 0; i < forms.length; i++) {
292-
var form = document.querySelectorAll('form')[i];
293-
if (form && form.name && self.scope[form.name]) {
294-
return self.scope[form.name];
295-
}
291+
var forms = document.querySelectorAll('form');
292+
for (var i = 0; i < forms.length; i++) {
293+
var form = document.querySelectorAll('form')[i];
294+
if (form && form.name && self.scope[form.name]) {
295+
return self.scope[form.name];
296296
}
297-
return null;
297+
}
298+
return null;
298299
}
299300

300301
/** Add the error to the validation summary

0 commit comments

Comments
 (0)