dist/toolkit.js
function(type, args) {
        var debug = this.options.debug || Toolkit.debug;

        if (debug) {
            console.log(this.name + '#' + this.uid, new Date().getMilliseconds(), type, args || []);

            if (debug === 'verbose') {
                console.dir(this);
            }
        }

        var hooks = this.__hooks[type];

        if (hooks) {
            $.each(hooks, function(i, hook) {
                hook.apply(this, args || []);
            }.bind(this));
        }
    }
function(type, args) {
        var debug = this.options.debug || Toolkit.debug;

        if (debug) {
            console.log(this.name + '#' + this.uid, new Date().getMilliseconds(), type, args || []);

            if (debug === 'verbose') {
                console.dir(this);
            }
        }

        var hooks = this.__hooks[type];

        if (hooks) {
            $.each(hooks, function(i, hook) {
                hook.apply(this, args || []);
            }.bind(this));
        }
    }
function ( type , args ) { var debug = this . options . debug || Toolkit . debug ; if ( debug ) { console . log ( this . name + '#' + this . uid , new Date ( ) . getMilliseconds ( ) , type , args || [ ] ) ; if ( debug === 'verbose' ) { console . dir ( this ) ; } } var hooks = this . __hooks [ type ] ; if ( hooks ) { $ . each ( hooks , function ( i , hook ) { hook . apply ( this , args || [ ] ) ; } . bind ( this ) ) ; } }
Trigger all hooks defined by type.

@param {String} type
@param {Array} [args]
Trigger all hooks defined by type .