Skip to content

Commit 0e3799e

Browse files
authored
Merge pull request #190 from STRML/fix/spread
Remove unneeded spread
2 parents 66fe679 + 32f14ef commit 0e3799e

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

react-list.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ module.exports = class ReactList extends Component {
476476
transform
477477
};
478478
return (
479-
<div {...{style}} ref={c => this.el = c}>
479+
<div style={style} ref={c => this.el = c}>
480480
<div style={listStyle}>{items}</div>
481481
</div>
482482
);

react-list.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,6 @@
2525
};
2626
}
2727

28-
var _extends = Object.assign || function (target) {
29-
for (var i = 1; i < arguments.length; i++) {
30-
var source = arguments[i];
31-
32-
for (var key in source) {
33-
if (Object.prototype.hasOwnProperty.call(source, key)) {
34-
target[key] = source[key];
35-
}
36-
}
37-
}
38-
39-
return target;
40-
};
41-
4228
function _classCallCheck(instance, Constructor) {
4329
if (!(instance instanceof Constructor)) {
4430
throw new TypeError("Cannot call a class as a function");
@@ -647,9 +633,9 @@
647633
};
648634
return _react2.default.createElement(
649635
'div',
650-
_extends({ style: style }, { ref: function ref(c) {
636+
{ style: style, ref: function ref(c) {
651637
return _this4.el = c;
652-
} }),
638+
} },
653639
_react2.default.createElement(
654640
'div',
655641
{ style: listStyle },

0 commit comments

Comments
 (0)