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

Commit

Permalink
version 2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Dec 27, 2016
1 parent fd6a3d7 commit ffb624a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.7",
"version": "2.1.8",
"description": "A datepicker directive for angularjs.",
"authors": [
"Filippo Oretti <[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-datepicker.sourcemap.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.7",
"version": "2.1.8",
"description": "A datepicker directive for angularjs.",
"homepage": "http://720kb.github.io/angular-datepicker",
"keywords": [
Expand Down
10 changes: 5 additions & 5 deletions src/js/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
$scope.monthNumber = Number($filter('date')(new Date($scope.dateMinLimit), 'MM'));
$scope.day = Number($filter('date')(new Date($scope.dateMinLimit), 'dd'));
$scope.year = Number($filter('date')(new Date($scope.dateMinLimit), 'yyyy'));

setDaysInMonth($scope.monthNumber, $scope.year);
}
, resetToMaxDate = function resetToMaxDate() {
Expand Down Expand Up @@ -382,17 +382,17 @@
}
})
, unregisterDateMinLimitWatcher = $scope.$watch('dateMinLimit', function dateMinLimitWatcher(newValue){
if(newValue){
if (newValue) {
resetToMinDate();
}
})
, unregisterDateMaxLimitWatcher = $scope.$watch('dateMaxLimit', function dateMaxLimitWatcher(newValue){
if(newValue){
if (newValue) {
resetToMaxDate();
}
})
, unregisterDateFormatWatcher = $scope.$watch('dateFormat', function dateFormatWatcher(newValue){
if(newValue){
if (newValue) {
setInputValue();
}
});
Expand Down Expand Up @@ -505,7 +505,7 @@
$scope.monthNumber = Number($filter('date')(new Date(selectedMonthNumber + '/01/2000'), 'MM'));
setDaysInMonth($scope.monthNumber, $scope.year);
setInputValue();
};
};

$scope.setNewYear = function setNewYear(year) {

Expand Down

0 comments on commit ffb624a

Please sign in to comment.