1
0
mirror of https://github.com/flarum/core.git synced 2025-09-02 20:52:45 +02:00

Remove duplicated code

This commit is contained in:
Toby Zerner
2016-09-03 23:14:17 +09:30
parent 109782154c
commit 14ee7614ac
2 changed files with 2 additions and 6 deletions

View File

@@ -26251,9 +26251,7 @@ System.register('flarum/components/ReplyPlaceholder', ['flarum/Component', 'flar
}
var reply = function reply() {
DiscussionControls.replyAction.call(_this2.props.discussion, true).then(function (newComponent) {
newComponent.focus();
});
DiscussionControls.replyAction.call(_this2.props.discussion, true);
};
return m(

View File

@@ -32,9 +32,7 @@ export default class ReplyPlaceholder extends Component {
}
const reply = () => {
DiscussionControls.replyAction.call(this.props.discussion, true).then(function (newComponent) {
newComponent.focus();
});
DiscussionControls.replyAction.call(this.props.discussion, true);
};
return (