Remove some superfluous functions

This commit is contained in:
Tom Willemse 2013-07-24 23:49:29 +02:00
parent ee2c58ffae
commit f897aa6287

View file

@ -263,16 +263,10 @@ var StoryRow = React.createClass({
}); });
var StoryTable = React.createClass({ var StoryTable = React.createClass({
handleMoved: React.autoBind(function(direction) {
this.props.onStoryMoved(direction);
}),
handleSelected: React.autoBind(function(storyId) {
this.props.onStorySelected(storyId);
}),
render: function() { render: function() {
var storyNodes = this.props.data.map(function (story) { var storyNodes = this.props.data.map(function (story) {
return <StoryRow story={story} onMoved={this.handleMoved} return <StoryRow story={story} onMoved={this.props.onStoryMoved}
onTitleClicked={this.handleSelected} onTitleClicked={this.props.onStorySelected}
onAssigneeClicked={this.props.onAssigneeClicked} />; onAssigneeClicked={this.props.onAssigneeClicked} />;
}.bind(this)); }.bind(this));
return ( return (