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

        var target = this.readValue(node, this.options.getUrl) || node.attr('href');

        // When jumping from one node to another
        // Immediately hide the other menu and start the timer for the current one
        if (this.url && target !== this.url) {
            this.hide();
            this.startTimer('show', this.options.showDelay);
        }

        // Set the state
        this.url = target;
        this.node = node.addClass('is-active');

        // Load the menu
        this.loadElement(node, function(flyout) {
            flyout.addClass('is-root');

            if (this.dataMap[target]) {
                this._buildMenu(flyout, this.dataMap[target]);
            }
        });

        // Display immediately if click
        if (this.options.mode === 'click') {
            this.position();
        }
    }
function(node) {
        node = $(node);

        var target = this.readValue(node, this.options.getUrl) || node.attr('href');

        // When jumping from one node to another
        // Immediately hide the other menu and start the timer for the current one
        if (this.url && target !== this.url) {
            this.hide();
            this.startTimer('show', this.options.showDelay);
        }

        // Set the state
        this.url = target;
        this.node = node.addClass('is-active');

        // Load the menu
        this.loadElement(node, function(flyout) {
            flyout.addClass('is-root');

            if (this.dataMap[target]) {
                this._buildMenu(flyout, this.dataMap[target]);
            }
        });

        // Display immediately if click
        if (this.options.mode === 'click') {
            this.position();
        }
    }
function ( node ) { node = $ ( node ) ; var target = this . readValue ( node , this . options . getUrl ) || node . attr ( 'href' ) ; // When jumping from one node to another // Immediately hide the other menu and start the timer for the current one if ( this . url && target !== this . url ) { this . hide ( ) ; this . startTimer ( 'show' , this . options . showDelay ) ; } // Set the state this . url = target ; this . node = node . addClass ( 'is-active' ) ; // Load the menu this . loadElement ( node , function ( flyout ) { flyout . addClass ( 'is-root' ) ; if ( this . dataMap [ target ] ) { this . _buildMenu ( flyout , this . dataMap [ target ] ) ; } } ) ; // Display immediately if click if ( this . options . mode === 'click' ) { this . position ( ) ; } }
Show the menu below the node.

@param {jQuery} node
Show the menu below the node .