Skip to content

Commit

Permalink
Bump up to v0.9.11
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Apr 26, 2017
1 parent ade450c commit e6619c0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-moment-picker",
"version": "0.9.10",
"version": "0.9.11",
"authors": [
"Indri Muska <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-moment-picker.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Moment Picker - v0.9.10 - http://indrimuska.github.io/angular-moment-picker - (c) 2015 Indri Muska - MIT */
/*! Angular Moment Picker - v0.9.11 - http://indrimuska.github.io/angular-moment-picker - (c) 2015 Indri Muska - MIT */
.moment-picker {
position: relative;
display: block;
Expand Down
14 changes: 12 additions & 2 deletions dist/angular-moment-picker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Moment Picker - v0.9.10 - http://indrimuska.github.io/angular-moment-picker - (c) 2015 Indri Muska - MIT */
/*! Angular Moment Picker - v0.9.11 - http://indrimuska.github.io/angular-moment-picker - (c) 2015 Indri Muska - MIT */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down Expand Up @@ -549,10 +549,20 @@
$scope.input
.on('focus click', function () { return $scope.$evalAsync($scope.view.open); })
.on('blur', function () { return $scope.$evalAsync($scope.view.close); })
.on('keydown', function (e) { return $scope.keyboard && $scope.$evalAsync(function () { return $scope.view.keydown(e); }); });
.on('keydown', function (e) {
if ($scope.keyboard)
$scope.$evalAsync(function () { return $scope.view.keydown(e); });
});
$scope.contents.on('click', function () { return focusInput(); });
$scope.container.on('mousedown', function (e) { return focusInput(e); });
angular.element(_this.$window).on('resize scroll', $scope.view.position);
// unbind events on destroy
$scope.$on('$destroy', function () {
$scope.input.off('focus click blur keydown');
$scope.contents.off('click');
$scope.container.off('mousedown');
angular.element(_this.$window).off('resize scroll', $scope.view.position);
});
});
};
}
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-moment-picker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/angular-moment-picker.min.js

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": "angular-moment-picker",
"version": "0.9.10",
"version": "0.9.11",
"description": "Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js",
"main": "dist/angular-moment-picker.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export default class Directive implements ng.IDirective {
.on('focus click', () => $scope.$evalAsync($scope.view.open))
.on('blur', () => $scope.$evalAsync($scope.view.close))
.on('keydown', (e) => {
if ($scope.keyboard) $scope.$evalAsync(() => $scope.view.keydown(e))
if ($scope.keyboard) $scope.$evalAsync(() => $scope.view.keydown(e));
});
$scope.contents.on('click', () => focusInput());
$scope.container.on('mousedown', (e: JQueryEventObject) => focusInput(e));
Expand Down

0 comments on commit e6619c0

Please sign in to comment.