Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit bcaa221

Browse files
committed
chore(datepicker): fix indentation
1 parent b76e98e commit bcaa221

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: src/datepicker/datepicker.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -600,17 +600,17 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
600600
} else {
601601
dateFormat = attrs.uibDatepickerPopup || datepickerPopupConfig.datepickerPopup;
602602
attrs.$observe('uibDatepickerPopup', function(value, oldValue) {
603-
var newDateFormat = value || datepickerPopupConfig.datepickerPopup;
604-
// Invalidate the $modelValue to ensure that formatters re-run
605-
// FIXME: Refactor when PR is merged: https://github.com/angular/angular.js/pull/10764
606-
if (newDateFormat !== dateFormat) {
607-
dateFormat = newDateFormat;
608-
ngModel.$modelValue = null;
609-
610-
if (!dateFormat) {
611-
throw new Error('uibDatepickerPopup must have a date format specified.');
612-
}
603+
var newDateFormat = value || datepickerPopupConfig.datepickerPopup;
604+
// Invalidate the $modelValue to ensure that formatters re-run
605+
// FIXME: Refactor when PR is merged: https://github.com/angular/angular.js/pull/10764
606+
if (newDateFormat !== dateFormat) {
607+
dateFormat = newDateFormat;
608+
ngModel.$modelValue = null;
609+
610+
if (!dateFormat) {
611+
throw new Error('uibDatepickerPopup must have a date format specified.');
613612
}
613+
}
614614
});
615615
}
616616

0 commit comments

Comments
 (0)