dist/toolkit.js
function(e) {
        e.preventDefault();

        // Hide previous drops
        this.hide();

        // Toggle the menu
        var node = $(e.currentTarget),
            menu = this.loadElement(node);

        if (!menu.is(':shown')) {
            this.show(node);

        } else {
            this.hide();
        }
    }
function(e) {
        e.preventDefault();

        // Hide previous drops
        this.hide();

        // Toggle the menu
        var node = $(e.currentTarget),
            menu = this.loadElement(node);

        if (!menu.is(':shown')) {
            this.show(node);

        } else {
            this.hide();
        }
    }
function ( e ) { e . preventDefault ( ) ; // Hide previous drops this . hide ( ) ; // Toggle the menu var node = $ ( e . currentTarget ) , menu = this . loadElement ( node ) ; if ( ! menu . is ( ':shown' ) ) { this . show ( node ) ; } else { this . hide ( ) ; } }
When a node is clicked, grab the target from the attribute.
Validate the target element, then either display or hide.

@param {jQuery.Event} e
@private
When a node is clicked grab the target from the attribute . Validate the target element then either display or hide .