Skip to content

Instantly share code, notes, and snippets.

@smnplk
Created May 21, 2015 19:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save smnplk/1c2f2aa091cc29103398 to your computer and use it in GitHub Desktop.
render: function() {
var time_columns = _.range(1,this.state.num_columns_init +1).map(function(n) {
if(this.state.removed_columns.contains(n)) /*if column was marked for removal, don't render it*/
return null;
return <TimeColumn columnIndex={n} workers={this.state.workers} key={n}/>;
3 }.bind(this));
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment