Sha256: 1f004f0b9a647a609ff4bcdf81863f00ddf8ee1392611970dec49ae40cdd8f63

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-views/lib/mixins/view_state_support.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-views/lib/mixins/view_state_support.js