File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,6 @@ const store = {
7
7
activeComponent : null
8
8
} ;
9
9
10
- const extend = ( target , ...sources ) => {
11
- target = target || { } ;
12
- for ( let index = 0 ; index < sources . length ; index ++ ) {
13
- let obj = sources [ index ] ;
14
- if ( ! obj ) {
15
- continue ;
16
- }
17
- for ( let key in obj ) {
18
- if ( obj . hasOwnProperty ( key ) ) {
19
- target [ key ] = obj [ key ] ;
20
- }
21
- }
22
- }
23
- return target ;
24
- } ;
25
-
26
10
module . exports = class extends React . Component {
27
11
static propTypes = {
28
12
options : React . PropTypes . object ,
@@ -36,7 +20,7 @@ module.exports = class extends React.Component {
36
20
sortable = null ;
37
21
38
22
componentDidMount ( ) {
39
- const options = extend ( { } , this . props . options ) ;
23
+ const options = { ... this . props . options } ;
40
24
41
25
[
42
26
'onStart' ,
You can’t perform that action at this time.
0 commit comments