1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 20:50:28 +02:00

Initialise component state in init() instead of constructor

This commit is contained in:
Toby Zerner
2015-10-13 16:58:51 +10:30
parent b00467ecd7
commit 4d5a291d76

View File

@@ -1,9 +1,7 @@
import Component from 'flarum/Component';
export default class AutocompleteDropdown extends Component {
constructor(...args) {
super(...args);
init() {
this.active = false;
this.index = 0;
this.keyWasJustPressed = false;