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

Commit

Permalink
fix(datepicker): allow expressions for minMode/maxMode
Browse files Browse the repository at this point in the history
- Fixes expressions not being parsed for `min-mode` and `max-mode`

Closes #5264
Closes #5268
Fixes #5240
  • Loading branch information
luber authored and wesleycho committed Jan 15, 2016
1 parent bcaa221 commit 7e93ec9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,16 +656,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
});
}

angular.forEach(['minMode', 'maxMode'], function(key) {
if (attrs[key]) {
scope.$parent.$watch(function() { return attrs[key]; }, function(value) {
scope.watchData[key] = value;
});
datepickerEl.attr(cameltoDash(key), 'watchData.' + key);
}
});

angular.forEach(['datepickerMode', 'shortcutPropagation'], function(key) {
angular.forEach(['minMode', 'maxMode', 'datepickerMode', 'shortcutPropagation'], function(key) {
if (attrs[key]) {
var getAttribute = $parse(attrs[key]);
var propConfig = {
Expand Down

0 comments on commit 7e93ec9

Please sign in to comment.