Skip to content

Commit

Permalink
Removed redundant var
Browse files Browse the repository at this point in the history
  • Loading branch information
okonet committed Nov 11, 2015
1 parent 0a13818 commit 8b21cdc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/AbsoluteGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ export default class AbsoluteGrid extends React.Component {
var index = sortedIndex[key];
var style = layout.getStyle(index, this.props.animation, item[this.props.filterProp]);

var gridItem = React.cloneElement(this.props.displayObject, {
return React.cloneElement(this.props.displayObject, {
...this.props.displayObject.props, style, item, index, key,
itemsLength: this.props.items.length,
dragEnabled: this.props.dragEnabled,
dragManager: this.dragManager
});

return gridItem;
});

var gridStyle = {
Expand Down

0 comments on commit 8b21cdc

Please sign in to comment.