Initialise component state in init() instead of constructor

This commit is contained in:
Toby Zerner 2015-10-13 16:58:31 +10:30
parent d333a60aa4
commit f199620df8

View File

@ -2,8 +2,8 @@ import Component from 'flarum/Component';
import PostStream from 'flarum/components/PostStream';
export default class DiscussionPage extends Component {
constructor(...args) {
super(...args);
init() {
super.init();
/**
* The discussion that is being viewed.