dist/toolkit.js
function(type, callback) {
        var list = this.__hooks[type] || [];
            list.push(callback);

        this.__hooks[type] = list;
    }
function(type, callback) {
        var list = this.__hooks[type] || [];
            list.push(callback);

        this.__hooks[type] = list;
    }
function ( type , callback ) { var list = this . __hooks [ type ] || [ ] ; list . push ( callback ) ; this . __hooks [ type ] = list ; }
Add a hook to a specific event type.

@param {String} type
@param {Function} callback
Add a hook to a specific event type .