Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 44cf2e1

Browse files
committed
style(ngModel): fix indentation
1 parent ce25ac8 commit 44cf2e1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/ng/directive/input.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -1031,30 +1031,30 @@ function weekParser(isoWeek) {
10311031

10321032
function createDateParser(regexp, mapping) {
10331033
return function(iso) {
1034-
var parts, map;
1034+
var parts, map;
10351035

1036-
if (isDate(iso)) {
1037-
return iso;
1038-
}
1036+
if (isDate(iso)) {
1037+
return iso;
1038+
}
10391039

1040-
if (isString(iso)) {
1041-
regexp.lastIndex = 0;
1042-
parts = regexp.exec(iso);
1040+
if (isString(iso)) {
1041+
regexp.lastIndex = 0;
1042+
parts = regexp.exec(iso);
10431043

1044-
if (parts) {
1045-
parts.shift();
1046-
map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0 };
1044+
if (parts) {
1045+
parts.shift();
1046+
map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0 };
10471047

1048-
forEach(parts, function(part, index) {
1049-
if (index < mapping.length) {
1050-
map[mapping[index]] = +part;
1051-
}
1052-
});
1053-
return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0);
1054-
}
1048+
forEach(parts, function(part, index) {
1049+
if (index < mapping.length) {
1050+
map[mapping[index]] = +part;
1051+
}
1052+
});
1053+
return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0);
10551054
}
1055+
}
10561056

1057-
return NaN;
1057+
return NaN;
10581058
};
10591059
}
10601060

0 commit comments

Comments
 (0)