#

API Docs for: v2.11.1
Show: Inherited Protected Private Deprecated

# File: packages/ember-views/lib/mixins/view_state_support.js

    /**
    @module ember
    @submodule ember-views
    */
    import { Mixin } from 'ember-metal';

    export default Mixin.create({
      _transitionTo(state) {
        var priorState = this._currentState;
        var currentState = this._currentState = this._states[state];
        this._state = state;

        if (priorState && priorState.exit) { priorState.exit(this); }
        if (currentState.enter) { currentState.enter(this); }
      }
    });