Skip to content
This repository was archived by the owner on Dec 26, 2019. It is now read-only.

Commit 434c068

Browse files
committed
Fix for observer errors in 1.13.x
Fixed according to suggestion in #41
1 parent ab5955d commit 434c068

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

addon/components/datepicker-support.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import Ember from 'ember';
33
export default Ember.Mixin.create({
44
mustUpdateInput: true,
55
value: null,
6+
// add the observed properties
7+
language: null,
8+
startDate: null,
9+
endDate: null,
610

711
setupBootstrapDatepicker: Ember.on('didInsertElement', function() {
812
var self = this;
@@ -70,7 +74,7 @@ export default Ember.Mixin.create({
7074
}
7175
}
7276

73-
this.set('mustUpdateInput', false);
77+
this.set('mustUpdateInput', false);
7478
this.set('value', value);
7579
this.sendAction('changeDate', value);
7680
},
@@ -94,7 +98,7 @@ export default Ember.Mixin.create({
9498
this.$().datepicker('setDatesDisabled', this.get('datesDisabled'));
9599
this._updateDatepicker();
96100
}),
97-
101+
98102

99103
_updateDatepicker: function() {
100104
var self = this,

0 commit comments

Comments
 (0)