File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ export default Ember.Mixin.create({
99 language : undefined ,
1010 startDate : undefined ,
1111 endDate : undefined ,
12+ customParser : function ( value ) {
13+ return value ;
14+ } ,
1215
1316 setupBootstrapDatepicker : Ember . on ( 'didInsertElement' , function ( ) {
1417
@@ -134,13 +137,16 @@ export default Ember.Mixin.create({
134137 _updateDatepicker : function ( ) {
135138 var element = this . $ ( ) ,
136139 value = this . get ( 'value' ) ,
140+ customParser = this . get ( 'customParser' ) ,
137141 dates = [ ] ;
138142
139143 if ( ! this . get ( 'mustUpdateInput' ) ) {
140144 this . set ( 'mustUpdateInput' , true ) ;
141145 return ;
142146 }
143147
148+ value = customParser ( value ) ;
149+
144150 switch ( Ember . typeOf ( value ) ) {
145151 case 'array' :
146152 dates = value ;
You can’t perform that action at this time.
0 commit comments