Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 4178866

Browse files
committed
Added { } curlyes on if statements
1 parent fe0e725 commit 4178866

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/js/angular-datepicker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,14 @@
387387
}
388388
})
389389
, unregisterDateMaxLimitWatcher = $scope.$watch('dateMaxLimit', function dateMaxLimitWatcher(newValue){
390-
if(newValue)
390+
if(newValue){
391391
resetToMaxDate();
392+
}
392393
})
393394
, unregisterDateFormatWatcher = $scope.$watch('dateFormat', function dateFormatWatcher(newValue){
394-
if(newValue)
395+
if(newValue){
395396
setInputValue();
397+
}
396398
});
397399

398400
$scope.nextMonth = function nextMonth() {

0 commit comments

Comments
 (0)