dist/toolkit.js
function(element) {
        element = $(element);

        // Pass the element since it gets removed
        this.fireEvent('hiding', [element]);

        element.transitionend(function() {
            element.remove();
            this.fireEvent('hidden');
        }.bind(this)).conceal();
    }
function(element) {
        element = $(element);

        // Pass the element since it gets removed
        this.fireEvent('hiding', [element]);

        element.transitionend(function() {
            element.remove();
            this.fireEvent('hidden');
        }.bind(this)).conceal();
    }
function ( element ) { element = $ ( element ) ; // Pass the element since it gets removed this . fireEvent ( 'hiding' , [ element ] ) ; element . transitionend ( function ( ) { element . remove ( ) ; this . fireEvent ( 'hidden' ) ; } . bind ( this ) ) . conceal ( ) ; }
Hide the toast after the duration is up.
Also remove the element from the DOM once the transition is complete.

@param {jQuery} element
Hide the toast after the duration is up . Also remove the element from the DOM once the transition is complete .