code: function handleTransitionEnd( evt ) {
      // Make sure this event handler has not bubbled up from a child.
      if ( evt.target === evt.currentTarget ) {
        $( evt.target ).off( TRANSITIONEND, handleTransitionEnd );
        callback();
      }
    }
docs: Transition end handler removes its listener.