Skip to content

Commit

Permalink
Merge pull request #350 from bouk/no-circular
Browse files Browse the repository at this point in the history
Remove circular dependency between griddle and gridRowContainer
  • Loading branch information
ryanlanciaux committed Mar 4, 2016
2 parents 50f0ac6 + d677b89 commit 357ebee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/gridRowContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var GridRowContainer = React.createClass({
var key = that.props.rowSettings.getRowKey(row, index);

if(typeof row["children"] !== "undefined"){
var Griddle = require('./griddle.jsx');
var Griddle = this.constructor.Griddle;
return (
<tr key={key} style={{paddingLeft: 5}}>
<td colSpan={that.props.columnSettings.getVisibleColumnCount()} className="griddle-parent" style={that.props.useGriddleStyles ? {border: "none", "padding": "0 0 0 5px"} : null}>
Expand Down
3 changes: 2 additions & 1 deletion scripts/griddle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var GridPagination = require('./gridPagination.jsx');
var GridSettings = require('./gridSettings.jsx');
var GridNoData = require('./gridNoData.jsx');
var GridRow = require('./gridRow.jsx');
var GridRowContainer = require('./gridRowContainer.jsx');
var CustomRowComponentContainer = require('./customRowComponentContainer.jsx');
var CustomPaginationContainer = require('./customPaginationContainer.jsx');
var CustomFilterContainer = require('./customFilterContainer.jsx');
Expand Down Expand Up @@ -808,4 +809,4 @@ var Griddle = React.createClass({
}
});

module.exports = Griddle;
GridRowContainer.Griddle = module.exports = Griddle;

0 comments on commit 357ebee

Please sign in to comment.