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({
handleMoved: React.autoBind(function(direction) {
this.props.onStoryMoved(direction);
}),
handleSelected: React.autoBind(function(storyId) {
this.props.onStorySelected(storyId);
}),
render: function() {
var storyNodes = this.props.data.map(function (story) {
return <StoryRow story={story} onMoved={this.handleMoved}
onTitleClicked={this.handleSelected}
return <StoryRow story={story} onMoved={this.props.onStoryMoved}
onTitleClicked={this.props.onStorySelected}
onAssigneeClicked={this.props.onAssigneeClicked} />;
}.bind(this));
return (