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 = {
77 activeComponent : null
88} ;
99
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-
2610module . exports = class extends React . Component {
2711 static propTypes = {
2812 options : React . PropTypes . object ,
@@ -36,7 +20,7 @@ module.exports = class extends React.Component {
3620 sortable = null ;
3721
3822 componentDidMount ( ) {
39- const options = extend ( { } , this . props . options ) ;
23+ const options = { ... this . props . options } ;
4024
4125 [
4226 'onStart' ,
You can’t perform that action at this time.
0 commit comments