Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_transition: function() {
var versions = get(this, 'versions');
var transition;
var firstTime = this.firstTime;
this.firstTime = false;
this.notifyContainer('afterChildInsertion', versions);
transition = get(this, 'transitionMap').transitionFor({
versions: versions,
parentElement: Ember.$(containingElement(this)),
use: get(this, 'use'),
rules: get(this, 'rules'),
matchContext: get(this, 'matchContext') || {},
// Using strings instead of booleans here is an
// optimization. The constraint system can match them more
// efficiently, since it treats boolean constraints as generic
// "match anything truthy/falsy" predicates, whereas string
// checks are a direct object property lookup.
firstTime: firstTime ? 'yes' : 'no',
});
if (this._runningTransition) {
this._runningTransition.interrupt();
}
this._runningTransition = transition;