dist/toolkit.js
function(type, args) {
        Base.prototype.fireEvent.call(this, type, args);

        var element = this.element,
            node = this.node,
            event = $.Event(type + '.toolkit.' + this.keyName);
            event.context = this;

        // Trigger event on the element and the node
        if (element) {
            element.trigger(event, args || []);
        }

        if (node) {
            node.trigger(event, args || []);
        }
    }
function(type, args) {
        Base.prototype.fireEvent.call(this, type, args);

        var element = this.element,
            node = this.node,
            event = $.Event(type + '.toolkit.' + this.keyName);
            event.context = this;

        // Trigger event on the element and the node
        if (element) {
            element.trigger(event, args || []);
        }

        if (node) {
            node.trigger(event, args || []);
        }
    }
function ( type , args ) { Base . prototype . fireEvent . call ( this , type , args ) ; var element = this . element , node = this . node , event = $ . Event ( type + '.toolkit.' + this . keyName ) ; event . context = this ; // Trigger event on the element and the node if ( element ) { element . trigger ( event , args || [ ] ) ; } if ( node ) { node . trigger ( event , args || [ ] ) ; } }
Trigger all hooks and any DOM events attached to the `element` or `node`.

@param {String} type
@param {Array} [args]
Trigger all hooks and any DOM events attached to the element or node .