initStates() {
        this._states = {};
        for ( let key in this ) {
            if ( this[ key ] && this[ key ].prototype instanceof State ) {
                this._states[ key ] = new this[ key ]( this );
            }
        }
    }
/**
     * Initialize states
     * Default resolve from injected
     */
Initialize states
Default resolve from injected
Initialize states Default resolve from injected
initStates() {
        this._states = {};
        for ( let key in this ) {
            if ( this[ key ] && this[ key ].prototype instanceof State ) {
                this._states[ key ] = new this[ key ]( this );
            }
        }
    }
initStates ( ) { this . _states = { } ; for ( let key in this ) { if ( this [ key ] && this [ key ] . prototype instanceof State ) { this . _states [ key ] = new this [ key ] ( this ) ; } } }
Initialize states
 Default resolve from injected
Initialize states Default resolve from injected