vendor/uui/js/u-ui.js
function () {
        var cleanup = function () {
            u.off(this.element,'transitionend', cleanup);
            // this.element.removeEventListener('transitionend', cleanup);
            u.off(this.element,'webkitTransitionEnd', cleanup);
            // this.element.removeEventListener('webkitTransitionEnd', cleanup);
            u.removeClass(this.element, 'is-animating');
        }.bind(this);

        // Remove animation class once the transition is done.
        u.on(this.element,'transitionend', cleanup);
        // this.element.addEventListener('transitionend', cleanup);
        u.on(this.element,'webkitTransitionEnd', cleanup);
        // this.element.addEventListener('webkitTransitionEnd', cleanup);
    }
function () {
        var cleanup = function () {
            u.off(this.element,'transitionend', cleanup);
            // this.element.removeEventListener('transitionend', cleanup);
            u.off(this.element,'webkitTransitionEnd', cleanup);
            // this.element.removeEventListener('webkitTransitionEnd', cleanup);
            u.removeClass(this.element, 'is-animating');
        }.bind(this);

        // Remove animation class once the transition is done.
        u.on(this.element,'transitionend', cleanup);
        // this.element.addEventListener('transitionend', cleanup);
        u.on(this.element,'webkitTransitionEnd', cleanup);
        // this.element.addEventListener('webkitTransitionEnd', cleanup);
    }
function ( ) { var cleanup = function ( ) { u . off ( this . element , 'transitionend' , cleanup ) ; // this.element.removeEventListener('transitionend', cleanup); u . off ( this . element , 'webkitTransitionEnd' , cleanup ) ; // this.element.removeEventListener('webkitTransitionEnd', cleanup); u . removeClass ( this . element , 'is-animating' ) ; } . bind ( this ) ; // Remove animation class once the transition is done. u . on ( this . element , 'transitionend' , cleanup ) ; // this.element.addEventListener('transitionend', cleanup); u . on ( this . element , 'webkitTransitionEnd' , cleanup ) ; // this.element.addEventListener('webkitTransitionEnd', cleanup); }
Adds an event listener to clean up after the animation ends.

@private
Adds an event listener to clean up after the animation ends .