Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
alenaksu committed Mar 22, 2016
1 parent 8011ac0 commit 96c915e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions dist/mdPickers.js
Expand Up @@ -854,15 +854,6 @@ module.directive("mdpTimePicker", ["$mdpTimePicker", "$timeout", function($mdpTi
inputContainerCtrl.setInvalid(!ngModel.$pristine && !!Object.keys(ngModel.$error).length);
}, true);

scope.getValue = function() {
if(angular.isDate(ngModel.$modelValue)) {
var strVal = moment(ngModel.$modelValue).format(scope.timeFormat);
inputContainerCtrl.setHasValue(!ngModel.$isEmpty(ngModel.$modelValue));

return strVal;
} else return "";
};

// update input element if model has changed
ngModel.$formatters.unshift(function(value) {
var time = angular.isDate(value) && moment(value);
Expand Down

0 comments on commit 96c915e

Please sign in to comment.