code: function _transitionComplete() {
      this.trigger( BaseTransition.END_EVENT, { target: this } );
      if ( contains( element, classObject.EXPANDED ) &&
           element.scrollHeight > previousHeight ) {
        element.style.maxHeight = element.scrollHeight + 'px';
      }
    }
docs: Handle the end of a transition.