File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
import EmberObject , { get } from '@ember/object' ;
2
- import { isDescriptor } from '../utils/utils' ;
3
2
4
3
const { keys } = Object ;
5
4
const OPTION_KEYS = '__option_keys__' ;
@@ -18,11 +17,7 @@ export default class Options {
18
17
const optionKeys = keys ( options ) ;
19
18
const createParams = { [ OPTION_KEYS ] : optionKeys , model, attribute } ;
20
19
21
- // If any of the options is a CP, we need to create a custom class for it
22
- if ( optionKeys . some ( ( key ) => isDescriptor ( options [ key ] ) ) ) {
23
- return OptionsObject . extend ( options ) . create ( createParams ) ;
24
- }
25
-
26
- return OptionsObject . create ( createParams , options ) ;
20
+ // we have to extend here in case anyone passes options that have computedProperties.
21
+ return OptionsObject . extend ( options ) . create ( createParams ) ;
27
22
}
28
23
}
You can’t perform that action at this time.
0 commit comments