We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6457f7a commit 2abbe7bCopy full SHA for 2abbe7b
1 file changed
src/index.jsx
@@ -7,22 +7,6 @@ const store = {
7
activeComponent: null
8
};
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
module.exports = class extends React.Component {
27
static propTypes = {
28
options: React.PropTypes.object,
@@ -36,7 +20,7 @@ module.exports = class extends React.Component {
36
sortable = null;
37
38
componentDidMount() {
39
- const options = extend({}, this.props.options);
+ const options = { ...this.props.options };
40
41
[
42
'onStart',
0 commit comments