code: function handleTransitionEnd(priv, evt) {
    if (evt.propertyName in priv.phaseTriggers &&
        priv.phaseTriggers[evt.propertyName].indexOf(evt.target) !== -1) {
      nextPhase(priv);
    }
  }
docs: Moves to next phase if transition that ended matches one of phase triggers.