Skip to content

Commit

Permalink
Just use reset to propagate start/end changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuwen Qian committed Jul 22, 2016
1 parent e010fbe commit fe33ddb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/strand-datepicker-alt/strand-datepicker-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
start: {
type: Object,
notify: true,
observer: '_startChanged'
},
startEnabled: {
type: Boolean,
Expand Down Expand Up @@ -176,8 +177,8 @@
// End
end: {
type: Object,
value: null,
notify: true
notify: true,
observer: '_endChanged'
},
endEnabled: {
type: Boolean,
Expand Down Expand Up @@ -329,6 +330,15 @@
}
},


_startChanged: function() {
this.reset();
},

_endChanged: function() {
this.reset();
},

// Footer
_getDuration: function(startUnix, endUnix) {
var footer = this.$$('#footer');
Expand Down

0 comments on commit fe33ddb

Please sign in to comment.